[totem-pl-parser] Make MEDIA_TYPE_NUM_TYPES a #define rather than an enum member
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] Make MEDIA_TYPE_NUM_TYPES a #define rather than an enum member
- Date: Thu, 15 Jul 2010 22:21:56 +0000 (UTC)
commit 88d4973586e75e8c71d458f64828bc9b69329957
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Jul 15 23:21:33 2010 +0100
Make MEDIA_TYPE_NUM_TYPES a #define rather than an enum member
plparse/totem-disc.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plparse/totem-disc.h b/plparse/totem-disc.h
index e2bb541..13e65c5 100644
--- a/plparse/totem-disc.h
+++ b/plparse/totem-disc.h
@@ -35,7 +35,6 @@ G_BEGIN_DECLS
* @MEDIA_TYPE_VCD: video CD
* @MEDIA_TYPE_DVD: video DVD
* @MEDIA_TYPE_DVB: digital television
- * @MEDIA_TYPE_NUM_TYPES: the number of supported media types
*
* Gives the media type of a disc, or %MEDIA_TYPE_ERROR if the media type
* could not be determined.
@@ -46,9 +45,9 @@ typedef enum {
MEDIA_TYPE_CDDA,
MEDIA_TYPE_VCD,
MEDIA_TYPE_DVD,
- MEDIA_TYPE_DVB,
- MEDIA_TYPE_NUM_TYPES /*< skip >*/
+ MEDIA_TYPE_DVB
} TotemDiscMediaType;
+#define MEDIA_TYPE_NUM_TYPES MEDIA_TYPE_DVB + 1
#define MediaType TotemDiscMediaType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]