[vlc-devel] commit: vlc_meta: C++ doesn't like bitmask with enum said Laurent. This shouldn't be used in module, but... (Pierre d'Herbemont )

git version control git at videolan.org
Wed Jan 6 16:50:34 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Jan  6 16:49:33 2010 +0100| [eaba6509a79dd35ce836400d2dce4588ac77d1dd] | committer: Pierre d'Herbemont 

vlc_meta: C++ doesn't like bitmask with enum said Laurent. This shouldn't be used in module, but...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eaba6509a79dd35ce836400d2dce4588ac77d1dd
---

 include/vlc_meta.h |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/vlc_meta.h b/include/vlc_meta.h
index c900314..d3b6f46 100644
--- a/include/vlc_meta.h
+++ b/include/vlc_meta.h
@@ -53,12 +53,11 @@ typedef enum vlc_meta_type_t
 
 #define VLC_META_TYPE_COUNT 17
 
-typedef enum vlc_meta_status_e {
-    ITEM_PREPARSED      = 1,
-    ITEM_ARTURL_FETCHED = 2,
-    ITEM_ART_FETCHED    = 4,
-    ITEM_ART_NOTFOUND   = 8
-} vlc_meta_status_e;
+typedef int vlc_meta_status_e;
+#deinf ITEM_PREPARSED       1
+#deinf ITEM_ARTURL_FETCHED  2
+#deinf ITEM_PREPARSED       4
+#deinf ITEM_PREPARSED       8
 
 /**
  * Basic function to deal with meta




More information about the vlc-devel mailing list