aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DsdLib.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-28 23:12:48 +0100
committerMax Kellermann <max@duempel.org>2013-10-28 23:12:48 +0100
commitfd3dc7e5fb37883c62ec4e30978d482e82e30b16 (patch)
tree003c18a0d4e1d9d99425c13854392468cd7086b8 /src/decoder/DsdLib.hxx
parentc37edfd3e934944283ccd943a2abb48adf7752d9 (diff)
downloadmpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.tar.gz
mpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.tar.xz
mpd-fd3dc7e5fb37883c62ec4e30978d482e82e30b16.zip
decoder/dsdlib: convert struct dsdlib_id to a class
Diffstat (limited to 'src/decoder/DsdLib.hxx')
-rw-r--r--src/decoder/DsdLib.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/decoder/DsdLib.hxx b/src/decoder/DsdLib.hxx
index 3e21bffb0..09633f681 100644
--- a/src/decoder/DsdLib.hxx
+++ b/src/decoder/DsdLib.hxx
@@ -20,18 +20,20 @@
#ifndef MPD_DECODER_DSDLIB_HXX
#define MPD_DECODER_DSDLIB_HXX
+#include "Compiler.h"
+
#include <stdlib.h>
#include <stdint.h>
struct Decoder;
struct InputStream;
-struct dsdlib_id {
+struct DsdId {
char value[4];
-};
-bool
-dsdlib_id_equals(const struct dsdlib_id *id, const char *s);
+ gcc_pure
+ bool Equals(const char *s) const;
+};
bool
dsdlib_read(Decoder *decoder, InputStream &is,