decoder/dsdlib: convert struct dsdlib_id to a class

This commit is contained in:
Max Kellermann
2013-10-28 23:12:48 +01:00
parent c37edfd3e9
commit fd3dc7e5fb
4 changed files with 35 additions and 34 deletions

View File

@@ -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,