Commit f1f6793c authored by Philipp Schafft's avatar Philipp Schafft 🦁 Committed by Philipp Schafft

Update: Mark internal used function static

parent 5ac1f860
......@@ -150,7 +150,7 @@ static int load_playlist(basic_playlist *data)
return 0;
}
void playlist_basic_clear(void *data)
static void playlist_basic_clear(void *data)
{
basic_playlist *pl = data;
if(pl)
......@@ -166,7 +166,7 @@ void playlist_basic_clear(void *data)
}
}
char *playlist_basic_get_next_filename(void *data)
static char *playlist_basic_get_next_filename(void *data)
{
basic_playlist *pl = (basic_playlist *)data;
char *ptr = NULL;
......@@ -218,7 +218,7 @@ char *playlist_basic_get_next_filename(void *data)
return strdup(ptr);
}
void playlist_basic_free_filename(void *data, char *fn)
static void playlist_basic_free_filename(void *data, char *fn)
{
(void)data;
free (fn);
......
......@@ -36,8 +36,6 @@ typedef struct
} basic_playlist;
void playlist_basic_clear(void *data);
char *playlist_basic_get_next_filename(void *data);
int playlist_basic_initialise(module_param_t *params, playlist_state_t *pl);
int playlist_script_initialise(module_param_t *params, playlist_state_t *pl);
......
......@@ -33,12 +33,12 @@ typedef struct {
char *on_ended;
} script_playlist;
void playlist_script_clear(void *data) {
static void playlist_script_clear(void *data) {
if(data)
free(data);
}
char *playlist_script_get_filename(void *data) {
static char *playlist_script_get_filename(void *data) {
script_playlist *pl = data;
char *prog = pl->program;
FILE *pipe;
......@@ -83,13 +83,13 @@ char *playlist_script_get_filename(void *data) {
return buf;
}
void playlist_script_free_filename(void *data, char *fn)
static void playlist_script_free_filename(void *data, char *fn)
{
(void)data;
free(fn);
}
void playlist_script_file_ended(void *data, char *fn)
static void playlist_script_file_ended(void *data, char *fn)
{
script_playlist *pl = data;
FILE *pipe;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment