diff --git a/src/mpd_client.c b/src/mpd_client.c index 1054ede17..5f1d4fc86 100644 --- a/src/mpd_client.c +++ b/src/mpd_client.c @@ -28,6 +28,9 @@ #include "config.h" #include "json_encode.h" +struct t_mpd mpd; +char dirble_api_token[28]; + /* forward declaration */ static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev); diff --git a/src/mpd_client.h b/src/mpd_client.h index 447dd563c..9221a1abd 100644 --- a/src/mpd_client.h +++ b/src/mpd_client.h @@ -96,9 +96,10 @@ struct t_mpd { int song_id; unsigned queue_version; -} mpd; +}; -char dirble_api_token[28]; +extern struct t_mpd mpd; +extern char dirble_api_token[28]; struct t_mpd_client_session { int song_id;