[xiph-commits] r3633 - in liboggz/trunk: include/oggz src/liboggz
conrad at svn.annodex.net
conrad at svn.annodex.net
Wed Jul 9 02:55:27 PDT 2008
Author: conrad
Date: 2008-07-09 02:55:27 -0700 (Wed, 09 Jul 2008)
New Revision: 3633
Modified:
liboggz/trunk/include/oggz/oggz.h
liboggz/trunk/src/liboggz/Version_script.in
liboggz/trunk/src/liboggz/oggz.c
Log:
add oggz_content_type() public API function:
* Return human-readable string representation of a content type
Modified: liboggz/trunk/include/oggz/oggz.h
===================================================================
--- liboggz/trunk/include/oggz/oggz.h 2008-07-09 09:55:03 UTC (rev 3632)
+++ liboggz/trunk/include/oggz/oggz.h 2008-07-09 09:55:27 UTC (rev 3633)
@@ -563,6 +563,15 @@
*/
long oggz_serialno_new (OGGZ * oggz);
+/**
+ * Return human-readable string representation of a content type
+ *
+ * \retval string the name of the content type
+ * \retval NULL \a content invalid
+ */
+const char *
+oggz_content_type (OggzStreamContent content);
+
#include <oggz/oggz_off_t.h>
#include <oggz/oggz_read.h>
#include <oggz/oggz_stream.h>
Modified: liboggz/trunk/src/liboggz/Version_script.in
===================================================================
--- liboggz/trunk/src/liboggz/Version_script.in 2008-07-09 09:55:03 UTC (rev 3632)
+++ liboggz/trunk/src/liboggz/Version_script.in 2008-07-09 09:55:27 UTC (rev 3633)
@@ -88,6 +88,8 @@
oggz_packet_destroy;
+ oggz_content_type;
+
local:
*;
};
Modified: liboggz/trunk/src/liboggz/oggz.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz.c 2008-07-09 09:55:03 UTC (rev 3632)
+++ liboggz/trunk/src/liboggz/oggz.c 2008-07-09 09:55:27 UTC (rev 3633)
@@ -617,3 +617,11 @@
}
}
+const char *
+oggz_content_type (OggzStreamContent content)
+{
+ if (content < 0 || content >= OGGZ_CONTENT_UNKNOWN)
+ return NULL;
+
+ return oggz_auto_codec_ident[content].content_type;
+}
More information about the commits
mailing list