commit 677ccef80bfb54a2221ec55cc0a61ff2b2dd97ef
parent 51e02cc8887b9bcc6028ebeb27b035fa3d65e625
Author: sin <sin@2f30.org>
Date: Thu, 25 Dec 2014 17:29:09 +0000
Staticise symbols
Diffstat:
4 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/cmd.c b/cmd.c
@@ -9,12 +9,12 @@
#include "sad.h"
-void
+static void
cmdstatus(int fd, int argc, char **argv)
{
}
-void
+static void
cmdvolume(int fd, int argc, char **argv)
{
int vol;
@@ -32,12 +32,12 @@ cmdvolume(int fd, int argc, char **argv)
output->vol(vol);
}
-void
+static void
cmdnext(int fd, int argc, char **argv)
{
}
-void
+static void
cmdpause(int fd, int argc, char **argv)
{
Song *s;
@@ -76,7 +76,7 @@ cmdpause(int fd, int argc, char **argv)
dprintf(fd, "OK\n");
}
-void
+static void
cmdplay(int fd, int argc, char **argv)
{
Song *s, *cur;
@@ -107,12 +107,12 @@ cmdplay(int fd, int argc, char **argv)
s->path, s->id);
}
-void
+static void
cmdprev(int fd, int argc, char **argv)
{
}
-void
+static void
cmdstop(int fd, int argc, char **argv)
{
Song *s;
@@ -132,7 +132,7 @@ cmdstop(int fd, int argc, char **argv)
dprintf(fd, "OK\n");
}
-void
+static void
cmdadd(int fd, int argc, char **argv)
{
Song *s;
@@ -151,7 +151,7 @@ cmdadd(int fd, int argc, char **argv)
dprintf(fd, "OK\n");
}
-void
+static void
cmdclear(int fd, int argc, char **argv)
{
Song *s;
@@ -170,12 +170,12 @@ cmdclear(int fd, int argc, char **argv)
dprintf(fd, "OK\n");
}
-void
+static void
cmddelete(int fd, int argc, char **argv)
{
}
-void
+static void
cmdplaylist(int fd, int argc, char **argv)
{
if (argc != 1) {
@@ -187,23 +187,23 @@ cmdplaylist(int fd, int argc, char **argv)
dprintf(fd, "OK\n");
}
-void
+static void
cmdclose(int fd, int argc, char **argv)
{
}
-void
+static void
cmdkill(int fd, int argc, char **argv)
{
}
-void
+static void
cmdping(int fd, int argc, char **argv)
{
dprintf(fd, "OK\n");
}
-Cmd cmds[] = {
+static Cmd cmds[] = {
{ "status", cmdstatus },
{ "volume", cmdvolume },
{ "next", cmdnext },
diff --git a/playlist.c b/playlist.c
@@ -9,7 +9,7 @@
static Playlist playlist;
static int rollingid;
-void
+int
initplaylist(void)
{
}
diff --git a/sad.c b/sad.c
@@ -18,7 +18,7 @@ int fdmax;
Output *output = &sndiooutput;
Decoder *decoder = &wavdecoder;
-int
+static int
servlisten(const char *name)
{
struct sockaddr_un sun;
@@ -46,7 +46,7 @@ servlisten(const char *name)
return listenfd;
}
-int
+static int
servaccept(int listenfd)
{
struct sockaddr_un sun;
@@ -59,7 +59,7 @@ servaccept(int listenfd)
return clifd;
}
-void
+static void
doaudio(void)
{
Song *s;
diff --git a/sad.h b/sad.h
@@ -53,6 +53,7 @@ extern Decoder *decoder;
int docmd(int);
/* playlist.c */
+int initplaylist(void);
Song *addplaylist(const char *);
Song *findsong(const char *);
Song *findsongid(int);