]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge remote-tracking branch 'fml/master'
authorAndre Noll <maan@systemlinux.org>
Wed, 16 Mar 2011 19:28:29 +0000 (20:28 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 16 Mar 2011 19:28:29 +0000 (20:28 +0100)
audiod.c
audiod.h
command.c

index 8b17d95fba692db0b2dd9126226cb8fb2cb682d5..e66373cc87ed475682655a9dac17baec92144496 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -167,7 +167,7 @@ struct command_task {
  * \return The audio format number on success, -E_UNSUPPORTED_AUDIO_FORMAT if
  * \a name is not a supported audio format.
  */
-int get_audio_format_num(const char *name)
+static int get_audio_format_num(const char *name)
 {
        int i;
 
@@ -469,20 +469,6 @@ static int get_empty_slot(void)
        return -E_NO_MORE_SLOTS;
 }
 
-/**
- * get the number of filters
- *
- * \param audio_format_num the number identifying the audio format
- *
- * \return the number of filters for the given audio format
- *
- * \sa struct filter;
- */
-int num_filters(int audio_format_num)
-{
-       return afi[audio_format_num].num_filters;
-}
-
 static void open_filters(struct slot_info *s)
 {
        struct audio_format_info *a = afi + s->format;
index 94399602b22280afbe88304cad8d832349f26780..4c3212228ba5ad75dac7241d10c47ebdb0478652 100644 (file)
--- a/audiod.h
+++ b/audiod.h
@@ -7,9 +7,6 @@
 /** \file audiod.h symbols exported from audiod.c */
 
 
-int num_filters(int audio_format_num);
-int get_audio_format_num(const char *name);
-
 /** enum of audio formats supported by para_audiod */
 enum {AUDIOD_AUDIO_FORMATS_ENUM};
 
index f9ef6cd75ab8733408d3c2542230ae806281bf85..5217f9b487cd260aebe5d5a986f4fd8e957b0270 100644 (file)
--- a/command.c
+++ b/command.c
@@ -255,7 +255,8 @@ int com_si(struct rc4_context *rc4c, int argc, __a_unused char * const * argv)
                free(info);
        }
        ut = uptime_str();
-       ret = rc4_send_va_buffer(rc4c, "up: %s\nplayed: %u\n"
+       ret = rc4_send_va_buffer(rc4c, "version: " GIT_VERSION "\n"
+               "up: %s\nplayed: %u\n"
                "server_pid: %d\n"
                "afs_pid: %d\n"
                "connections (active/accepted/total): %u/%u/%u\n"