From fd09b23aa029c651b125b0aa608fa056fd25c34e Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Tue, 20 Jul 2004 22:46:38 +0000 Subject: [PATCH] Add MPC to the C bindings. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@331317 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- bindings/c/Makefile.am | 1 + bindings/c/tag_c.cpp | 3 +++ bindings/c/tag_c.h | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bindings/c/Makefile.am b/bindings/c/Makefile.am index 87d21b50..359e2c7b 100644 --- a/bindings/c/Makefile.am +++ b/bindings/c/Makefile.am @@ -5,6 +5,7 @@ INCLUDES = \ -I$(top_srcdir)/taglib/ogg \ -I$(top_srcdir)/taglib/ogg/vorbis \ -I$(top_srcdir)/taglib/flac \ + -I$(top_srcdir)/taglib/mpc \ $(all_includes) lib_LTLIBRARIES = libtag_c.la diff --git a/bindings/c/tag_c.cpp b/bindings/c/tag_c.cpp index d78df295..f1334816 100644 --- a/bindings/c/tag_c.cpp +++ b/bindings/c/tag_c.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include namespace TagLib @@ -65,6 +66,8 @@ TagLib_File *taglib_file_new_type(const char *filename, TagLib_File_Type type) return reinterpret_cast(new Vorbis::File(filename)); case TagLib_File_FLAC: return reinterpret_cast(new FLAC::File(filename)); + case TagLib_File_MPC: + return reinterpret_cast(new MPC::File(filename)); } return 0; diff --git a/bindings/c/tag_c.h b/bindings/c/tag_c.h index 34d09482..09eb394b 100644 --- a/bindings/c/tag_c.h +++ b/bindings/c/tag_c.h @@ -74,7 +74,8 @@ void taglib_set_string_management_enabled(BOOL management); typedef enum { TagLib_File_MPEG, TagLib_File_OggVorbis, - TagLib_File_FLAC + TagLib_File_FLAC, + TagLib_File_MPC } TagLib_File_Type; /*! -- 2.50.1