Add MPC to the C bindings.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@331317 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler
2004-07-20 22:46:38 +00:00
parent 28738debc1
commit fd09b23aa0
3 changed files with 6 additions and 1 deletions

View File

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

View File

@ -26,6 +26,7 @@
#include <vorbisfile.h>
#include <mpegfile.h>
#include <flacfile.h>
#include <mpcfile.h>
#include <tag.h>
namespace TagLib
@ -65,6 +66,8 @@ TagLib_File *taglib_file_new_type(const char *filename, TagLib_File_Type type)
return reinterpret_cast<TagLib_File *>(new Vorbis::File(filename));
case TagLib_File_FLAC:
return reinterpret_cast<TagLib_File *>(new FLAC::File(filename));
case TagLib_File_MPC:
return reinterpret_cast<TagLib_File *>(new MPC::File(filename));
}
return 0;

View File

@ -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;
/*!