diff --git a/src/opustags.cc b/src/opustags.cc index 1427508..ffb8a10 100644 --- a/src/opustags.cc +++ b/src/opustags.cc @@ -1,5 +1,7 @@ #include +#include "opustags.h" + #include #include #include @@ -15,13 +17,7 @@ #define le32toh(x) OSSwapLittleToHostInt32(x) #endif -typedef struct { - uint32_t vendor_length; - const char *vendor_string; - uint32_t count; - uint32_t *lengths; - const char **comment; -} opus_tags; +using namespace ot; int parse_tags(char *data, long len, opus_tags *tags){ long pos; diff --git a/src/opustags.h b/src/opustags.h new file mode 100644 index 0000000..de7fbb3 --- /dev/null +++ b/src/opustags.h @@ -0,0 +1,32 @@ +/** + * \file src/opustags.h + * \brief Interface of all the submodules of opustags. + */ + +#include + +namespace ot { + +/** + * \defgroup ogg Ogg + * \brief Helpers to work with libogg. + */ + +/** + * \defgroup opus Opus + * \brief Opus packet decoding and recoding. + * + * \{ + */ + +struct opus_tags { + uint32_t vendor_length; + const char *vendor_string; + uint32_t count; + uint32_t *lengths; + const char **comment; +}; + +/** \} */ + +}