aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-11-24 14:32:53 +0100
committerThomas Jansen <mithi@mithi.net>2008-11-24 14:32:53 +0100
commit7c7b0431fe605c89ab57cc5d53b7e8921dde5de3 (patch)
tree863eaf0965d81b69fa1e4ba54c14dd6ef6986d31
parentc6a63f1397a68389c2bd4812acbff7c1815df935 (diff)
downloadmpd-7c7b0431fe605c89ab57cc5d53b7e8921dde5de3.tar.gz
mpd-7c7b0431fe605c89ab57cc5d53b7e8921dde5de3.tar.xz
mpd-7c7b0431fe605c89ab57cc5d53b7e8921dde5de3.zip
decoder_api.c: replaced mpd_unused by G_GNUC_UNUSED
Diffstat (limited to '')
-rw-r--r--src/decoder_api.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index fd3990786..bf389222b 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -26,9 +26,9 @@
#include "utils.h"
#include "normalize.h"
#include "pipe.h"
-#include "gcc.h"
#include <assert.h>
+#include <glib.h>
void decoder_initialized(struct decoder * decoder,
const struct audio_format *audio_format,
@@ -54,17 +54,18 @@ void decoder_initialized(struct decoder * decoder,
notify_signal(&pc.notify);
}
-const char *decoder_get_url(mpd_unused struct decoder * decoder, char * buffer)
+const char *decoder_get_url(G_GNUC_UNUSED struct decoder * decoder,
+ char * buffer)
{
return song_get_url(dc.current_song, buffer);
}
-enum decoder_command decoder_get_command(mpd_unused struct decoder * decoder)
+enum decoder_command decoder_get_command(G_GNUC_UNUSED struct decoder * decoder)
{
return dc.command;
}
-void decoder_command_finished(mpd_unused struct decoder * decoder)
+void decoder_command_finished(G_GNUC_UNUSED struct decoder * decoder)
{
assert(dc.command != DECODE_COMMAND_NONE);
assert(dc.command != DECODE_COMMAND_SEEK ||
@@ -78,7 +79,7 @@ void decoder_command_finished(mpd_unused struct decoder * decoder)
notify_signal(&pc.notify);
}
-double decoder_seek_where(mpd_unused struct decoder * decoder)
+double decoder_seek_where(G_GNUC_UNUSED struct decoder * decoder)
{
assert(dc.command == DECODE_COMMAND_SEEK);
@@ -275,7 +276,7 @@ decoder_data(struct decoder *decoder,
}
enum decoder_command
-decoder_tag(mpd_unused struct decoder *decoder, struct input_stream *is,
+decoder_tag(G_GNUC_UNUSED struct decoder *decoder, struct input_stream *is,
const struct tag *tag)
{
struct tag *tag2 = is != NULL ? tag_add_stream_tags(tag, is) : NULL;