]> Untitled Git - ympd.git/commitdiff
added forward declarations
authorSuperBFG7 <daniel@despite.ch>
Tue, 2 Jun 2020 10:41:52 +0000 (12:41 +0200)
committerSuperBFG7 <daniel@despite.ch>
Tue, 2 Jun 2020 10:41:52 +0000 (12:41 +0200)
src/mpd_client.c
src/mpd_client.h

index 2911e4616312c987a7505a0733109e4b64dac9f4..9f003ab04c432213162aa652354df7e0fd1e42a1 100644 (file)
@@ -30,6 +30,8 @@
 
 /* forward declaration */
 static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);
+char dirble_api_token[28];
+struct t_mpd mpd;
 
 const char * mpd_cmd_strs[] = {
     MPD_CMDS(GEN_STR)
index 447dd563c206859c2e67533c8d2f001e9dc15ad4..9342c55075860b889495554a929236148dfede45 100644 (file)
@@ -96,9 +96,11 @@ struct t_mpd {
 
     int song_id;
     unsigned queue_version;
-} mpd;
+};
+
+extern struct t_mpd mpd;
 
-char dirble_api_token[28];
+extern char dirble_api_token[28];
 
 struct t_mpd_client_session {
     int song_id;