Code

screen_queue: move the completion_callback_data_t type down
authorMax Kellermann <max.kellermann@gmail.com>
Wed, 2 Aug 2017 07:29:31 +0000 (09:29 +0200)
committerMax Kellermann <max.kellermann@gmail.com>
Wed, 2 Aug 2017 07:29:31 +0000 (09:29 +0200)
src/screen_queue.c

index 47eb7165eee0404db24505cf1b659124f7c012e6..bc370d338611c08b671cf9f186e5c80090dfa074 100644 (file)
 #define MAX_SONG_LENGTH 512
 
 #ifndef NCMPC_MINI
-typedef struct
-{
-       GList **list;
-       GList **dir_list;
-       struct mpdclient *c;
-} completion_callback_data_t;
-
 static struct hscroll hscroll;
 #endif
 
@@ -206,6 +199,13 @@ static void add_dir(GCompletion *gcmp, gchar *dir, GList **dir_list,
        *dir_list = g_list_append(*dir_list, g_strdup(dir));
 }
 
+typedef struct
+{
+       GList **list;
+       GList **dir_list;
+       struct mpdclient *c;
+} completion_callback_data_t;
+
 static void add_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
 {
        completion_callback_data_t *tmp = (completion_callback_data_t *)data;