Commit e0bbc196 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Replace define by enum

parent 955d1b68
...@@ -153,36 +153,38 @@ VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) ); ...@@ -153,36 +153,38 @@ VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) );
#endif #endif
/* Interface dialog ids for dialog providers */ /* Interface dialog ids for dialog providers */
#define INTF_DIALOG_FILE_SIMPLE 1 typedef enum vlc_dialog {
#define INTF_DIALOG_FILE 2 INTF_DIALOG_FILE_SIMPLE = 1,
#define INTF_DIALOG_DISC 3 INTF_DIALOG_FILE,
#define INTF_DIALOG_NET 4 INTF_DIALOG_DISC,
#define INTF_DIALOG_CAPTURE 5 INTF_DIALOG_NET,
#define INTF_DIALOG_SAT 6 INTF_DIALOG_CAPTURE,
#define INTF_DIALOG_DIRECTORY 7 INTF_DIALOG_SAT,
INTF_DIALOG_DIRECTORY,
#define INTF_DIALOG_STREAMWIZARD 8
#define INTF_DIALOG_WIZARD 9 INTF_DIALOG_STREAMWIZARD,
INTF_DIALOG_WIZARD,
#define INTF_DIALOG_PLAYLIST 10
#define INTF_DIALOG_MESSAGES 11 INTF_DIALOG_PLAYLIST,
#define INTF_DIALOG_FILEINFO 12 INTF_DIALOG_MESSAGES,
#define INTF_DIALOG_PREFS 13 INTF_DIALOG_FILEINFO,
#define INTF_DIALOG_BOOKMARKS 14 INTF_DIALOG_PREFS,
#define INTF_DIALOG_EXTENDED 15 INTF_DIALOG_BOOKMARKS,
INTF_DIALOG_EXTENDED,
#define INTF_DIALOG_POPUPMENU 20
#define INTF_DIALOG_AUDIOPOPUPMENU 21 INTF_DIALOG_POPUPMENU = 20,
#define INTF_DIALOG_VIDEOPOPUPMENU 22 INTF_DIALOG_AUDIOPOPUPMENU,
#define INTF_DIALOG_MISCPOPUPMENU 23 INTF_DIALOG_VIDEOPOPUPMENU,
INTF_DIALOG_MISCPOPUPMENU,
#define INTF_DIALOG_FILE_GENERIC 30
#define INTF_DIALOG_INTERACTION 50 INTF_DIALOG_FILE_GENERIC = 30,
INTF_DIALOG_INTERACTION = 50,
#define INTF_DIALOG_UPDATEVLC 90
#define INTF_DIALOG_VLM 91 INTF_DIALOG_UPDATEVLC = 90,
INTF_DIALOG_VLM,
#define INTF_DIALOG_EXIT 99
INTF_DIALOG_EXIT = 99
} vlc_dialog_t;
/* Useful text messages shared by interfaces */ /* Useful text messages shared by interfaces */
#define INTF_ABOUT_MSG LICENSE_MSG #define INTF_ABOUT_MSG LICENSE_MSG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment