diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 21:40:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 21:42:50 +0100 |
commit | cd0d003197d0abd572edcc3cbef532a5e3cfc395 (patch) | |
tree | f92902b730d3230592b4af85ade14d4253a5dd39 /src/encoder/null_encoder.c | |
parent | cfeeb7af2e398b94db6db84c208976588d8cfcda (diff) | |
download | mpd-cd0d003197d0abd572edcc3cbef532a5e3cfc395.tar.gz mpd-cd0d003197d0abd572edcc3cbef532a5e3cfc395.tar.xz mpd-cd0d003197d0abd572edcc3cbef532a5e3cfc395.zip |
filter/chain, encoder: GLib include cleanup
Diffstat (limited to 'src/encoder/null_encoder.c')
-rw-r--r-- | src/encoder/null_encoder.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/encoder/null_encoder.c b/src/encoder/null_encoder.c index fa1a0a034..b973adf76 100644 --- a/src/encoder/null_encoder.c +++ b/src/encoder/null_encoder.c @@ -22,6 +22,9 @@ #include "encoder_plugin.h" #include "util/fifo_buffer.h" #include "util/growing_fifo.h" +#include "gcc.h" + +#include <glib.h> #include <assert.h> #include <string.h> @@ -34,15 +37,9 @@ struct null_encoder { extern const struct encoder_plugin null_encoder_plugin; -static inline GQuark -null_encoder_quark(void) -{ - return g_quark_from_static_string("null_encoder"); -} - static struct encoder * -null_encoder_init(G_GNUC_UNUSED const struct config_param *param, - G_GNUC_UNUSED GError **error) +null_encoder_init(gcc_unused const struct config_param *param, + gcc_unused GError **error) { struct null_encoder *encoder; @@ -71,8 +68,8 @@ null_encoder_close(struct encoder *_encoder) static bool null_encoder_open(struct encoder *_encoder, - G_GNUC_UNUSED struct audio_format *audio_format, - G_GNUC_UNUSED GError **error) + gcc_unused struct audio_format *audio_format, + gcc_unused GError **error) { struct null_encoder *encoder = (struct null_encoder *)_encoder; @@ -83,7 +80,7 @@ null_encoder_open(struct encoder *_encoder, static bool null_encoder_write(struct encoder *_encoder, const void *data, size_t length, - G_GNUC_UNUSED GError **error) + gcc_unused GError **error) { struct null_encoder *encoder = (struct null_encoder *)_encoder; |