[vlc-devel] commit: Replace define by enum (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Mar 29 00:29:52 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at ambre.(none)> | Fri Mar 28 16:29:26 2008 -0700| [e0bbc1967a72e56f7987c03c713d58b5561c14b4]
Replace define by enum
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0bbc1967a72e56f7987c03c713d58b5561c14b4
---
include/vlc_interface.h | 62 ++++++++++++++++++++++++----------------------
1 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/include/vlc_interface.h b/include/vlc_interface.h
index 3e6a033..6ef6db9 100644
--- a/include/vlc_interface.h
+++ b/include/vlc_interface.h
@@ -153,36 +153,38 @@ VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) );
#endif
/* Interface dialog ids for dialog providers */
-#define INTF_DIALOG_FILE_SIMPLE 1
-#define INTF_DIALOG_FILE 2
-#define INTF_DIALOG_DISC 3
-#define INTF_DIALOG_NET 4
-#define INTF_DIALOG_CAPTURE 5
-#define INTF_DIALOG_SAT 6
-#define INTF_DIALOG_DIRECTORY 7
-
-#define INTF_DIALOG_STREAMWIZARD 8
-#define INTF_DIALOG_WIZARD 9
-
-#define INTF_DIALOG_PLAYLIST 10
-#define INTF_DIALOG_MESSAGES 11
-#define INTF_DIALOG_FILEINFO 12
-#define INTF_DIALOG_PREFS 13
-#define INTF_DIALOG_BOOKMARKS 14
-#define INTF_DIALOG_EXTENDED 15
-
-#define INTF_DIALOG_POPUPMENU 20
-#define INTF_DIALOG_AUDIOPOPUPMENU 21
-#define INTF_DIALOG_VIDEOPOPUPMENU 22
-#define INTF_DIALOG_MISCPOPUPMENU 23
-
-#define INTF_DIALOG_FILE_GENERIC 30
-#define INTF_DIALOG_INTERACTION 50
-
-#define INTF_DIALOG_UPDATEVLC 90
-#define INTF_DIALOG_VLM 91
-
-#define INTF_DIALOG_EXIT 99
+typedef enum vlc_dialog {
+ INTF_DIALOG_FILE_SIMPLE = 1,
+ INTF_DIALOG_FILE,
+ INTF_DIALOG_DISC,
+ INTF_DIALOG_NET,
+ INTF_DIALOG_CAPTURE,
+ INTF_DIALOG_SAT,
+ INTF_DIALOG_DIRECTORY,
+
+ INTF_DIALOG_STREAMWIZARD,
+ INTF_DIALOG_WIZARD,
+
+ INTF_DIALOG_PLAYLIST,
+ INTF_DIALOG_MESSAGES,
+ INTF_DIALOG_FILEINFO,
+ INTF_DIALOG_PREFS,
+ INTF_DIALOG_BOOKMARKS,
+ INTF_DIALOG_EXTENDED,
+
+ INTF_DIALOG_POPUPMENU = 20,
+ INTF_DIALOG_AUDIOPOPUPMENU,
+ INTF_DIALOG_VIDEOPOPUPMENU,
+ INTF_DIALOG_MISCPOPUPMENU,
+
+ INTF_DIALOG_FILE_GENERIC = 30,
+ INTF_DIALOG_INTERACTION = 50,
+
+ INTF_DIALOG_UPDATEVLC = 90,
+ INTF_DIALOG_VLM,
+
+ INTF_DIALOG_EXIT = 99
+} vlc_dialog_t;
/* Useful text messages shared by interfaces */
#define INTF_ABOUT_MSG LICENSE_MSG
More information about the vlc-devel
mailing list