summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
Diffstat (limited to 'binding')
-rw-r--r--binding/afm-common.c4
-rw-r--r--binding/afm-common.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/binding/afm-common.c b/binding/afm-common.c
index 93e6f54..635fc7b 100644
--- a/binding/afm-common.c
+++ b/binding/afm-common.c
@@ -19,7 +19,7 @@
#include "afm-common.h"
-const char *gstreamer_control_commands[] = {
+const char *gstreamer_control_commands[NUM_CMDS] = {
"play",
"pause",
"previous",
@@ -34,7 +34,7 @@ const char *gstreamer_control_commands[] = {
};
/* NULLs signal this functional isn't available */
-const char *avrcp_control_commands[] = {
+const char *avrcp_control_commands[NUM_CMDS] = {
"Play",
"Pause",
"Previous",
diff --git a/binding/afm-common.h b/binding/afm-common.h
index 0439aa9..56c8f8f 100644
--- a/binding/afm-common.h
+++ b/binding/afm-common.h
@@ -53,8 +53,8 @@ enum {
NUM_CMDS
};
-const char *avrcp_control_commands[NUM_CMDS];
-const char *gstreamer_control_commands[NUM_CMDS];
+extern const char *avrcp_control_commands[NUM_CMDS];
+extern const char *gstreamer_control_commands[NUM_CMDS];
int get_command_index(const char *name);
GList *find_media_index(GList *list, long int index);
void g_free_playlist_item(void *ptr);