Commit 66fcd25b authored by Max Kellermann's avatar Max Kellermann

command/sticker, sticker/song: embed struct sticker_song_find_data in namespace

Fixes `-Werror=odr`
parent 01d37775
...@@ -31,10 +31,12 @@ ...@@ -31,10 +31,12 @@
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
namespace {
struct sticker_song_find_data { struct sticker_song_find_data {
Response &r; Response &r;
const char *name; const char *name;
}; };
}
static void static void
sticker_song_find_print_cb(const LightSong &song, const char *value, sticker_song_find_print_cb(const LightSong &song, const char *value,
......
...@@ -69,6 +69,7 @@ sticker_song_get(const LightSong &song) ...@@ -69,6 +69,7 @@ sticker_song_get(const LightSong &song)
return sticker_load("song", uri.c_str()); return sticker_load("song", uri.c_str());
} }
namespace {
struct sticker_song_find_data { struct sticker_song_find_data {
const Database *db; const Database *db;
const char *base_uri; const char *base_uri;
...@@ -78,6 +79,7 @@ struct sticker_song_find_data { ...@@ -78,6 +79,7 @@ struct sticker_song_find_data {
void *user_data); void *user_data);
void *user_data; void *user_data;
}; };
}
static void static void
sticker_song_find_cb(const char *uri, const char *value, void *user_data) sticker_song_find_cb(const char *uri, const char *value, void *user_data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment