projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a31b44
)
added forward declarations
author
SuperBFG7
<daniel@despite.ch>
Tue, 2 Jun 2020 10:41:52 +0000
(12:41 +0200)
committer
SuperBFG7
<daniel@despite.ch>
Tue, 2 Jun 2020 10:41:52 +0000
(12:41 +0200)
src/mpd_client.c
patch
|
blob
|
history
src/mpd_client.h
patch
|
blob
|
history
diff --git
a/src/mpd_client.c
b/src/mpd_client.c
index
2911e46
..
9f003ab
100644
(file)
--- a/
src/mpd_client.c
+++ b/
src/mpd_client.c
@@
-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)
diff --git
a/src/mpd_client.h
b/src/mpd_client.h
index
447dd56
..
9342c55
100644
(file)
--- a/
src/mpd_client.h
+++ b/
src/mpd_client.h
@@
-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;