aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
commit76a8fab4adc293982f355609b89dde88d5f355e0 (patch)
treeb8fe58ce54cade4122402c57328a9691064b2590 /src/screen_play.c
parent0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (diff)
downloadmpd-76a8fab4adc293982f355609b89dde88d5f355e0.tar.gz
mpd-76a8fab4adc293982f355609b89dde88d5f355e0.tar.xz
mpd-76a8fab4adc293982f355609b89dde88d5f355e0.zip
fix function prototypes
Add missing prototypes, and fix wrong prototypes. Convert lots of functions to "static" when they are only used within the current source file.
Diffstat (limited to 'src/screen_play.c')
-rw-r--r--src/screen_play.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 1878bd9ce..6cd28d6ac 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -37,6 +37,7 @@
#include "colors.h"
#include "screen.h"
#include "screen_utils.h"
+#include "screen_play.h"
#define MAX_SONG_LENGTH 512
@@ -120,7 +121,8 @@ center_playing_item(screen_t *screen, mpdclient_t *c)
return 0;
}
-void save_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
+static void
+save_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
{
completion_callback_data_t *tmp = (completion_callback_data_t *)data;
GList **list = tmp->list;
@@ -133,8 +135,9 @@ void save_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
}
}
-void save_post_completion_cb(GCompletion *gcmp, gchar *line, GList *items,
- void *data)
+static void
+save_post_completion_cb(GCompletion *gcmp, gchar *line, GList *items,
+ void *data)
{
completion_callback_data_t *tmp = (completion_callback_data_t *)data;
screen_t *screen = tmp->screen;
@@ -227,8 +230,8 @@ playlist_save(screen_t *screen, mpdclient_t *c, char *name, char *defaultname)
return 0;
}
-void add_dir(GCompletion *gcmp, gchar *dir, GList **dir_list, GList **list,
- mpdclient_t *c)
+static void add_dir(GCompletion *gcmp, gchar *dir, GList **dir_list,
+ GList **list, mpdclient_t *c)
{
g_completion_remove_items(gcmp, *list);
*list = string_list_remove(*list, dir);
@@ -237,7 +240,7 @@ void add_dir(GCompletion *gcmp, gchar *dir, GList **dir_list, GList **list,
*dir_list = g_list_append(*dir_list, g_strdup(dir));
}
-void add_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
+static void add_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
{
completion_callback_data_t *tmp = (completion_callback_data_t *)data;
GList **dir_list = tmp->dir_list;
@@ -259,8 +262,8 @@ void add_pre_completion_cb(GCompletion *gcmp, gchar *line, void *data)
}
}
-void add_post_completion_cb(GCompletion *gcmp, gchar *line, GList *items,
- void *data)
+static void add_post_completion_cb(GCompletion *gcmp, gchar *line,
+ GList *items, void *data)
{
completion_callback_data_t *tmp = (completion_callback_data_t *)data;
GList **dir_list = tmp->dir_list;