Mercurial > mplayer.hg
comparison gui/util/list.h @ 33742:e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
Rename that part listSet() and remove now unused parameter fparam.
Remove needless casts in listSet() calls.
Remove needless explicit initialization of global list variables.
Additionally, remove disabled debug code list().
author | ib |
---|---|
date | Thu, 07 Jul 2011 11:50:32 +0000 |
parents | 962dc701989d |
children | 5860cfaff0a4 |
comparison
equal
deleted
inserted
replaced
33741:962dc701989d | 33742:e1539e14d60f |
---|---|
17 */ | 17 */ |
18 | 18 |
19 #ifndef MPLAYER_GUI_LIST_H | 19 #ifndef MPLAYER_GUI_LIST_H |
20 #define MPLAYER_GUI_LIST_H | 20 #define MPLAYER_GUI_LIST_H |
21 | 21 |
22 #define gtkAddPlItem 5 | |
23 #define gtkGetNextPlItem 6 | |
24 #define gtkGetPrevPlItem 7 | |
25 #define gtkGetCurrPlItem 8 | |
26 #define gtkDelPl 9 | |
27 #define gtkDelCurrPlItem 23 | |
28 #define gtkInsertPlItem 24 | |
29 #define gtkSetCurrPlItem 25 | |
30 #define gtkAddURLItem 15 | |
31 | |
32 typedef struct plItem { | |
33 struct plItem *prev, *next; | |
34 char *path; | |
35 char *name; | |
36 } plItem; | |
37 | |
38 typedef struct urlItem { | |
39 struct urlItem *next; | |
40 char *url; | |
41 } urlItem; | |
42 | |
43 extern plItem *plList; | |
44 extern plItem *plCurrent; | |
45 extern plItem *plLastPlayed; | |
46 | |
47 extern urlItem *URLList; | |
48 | |
22 void gaddlist(char ***list, const char *entry); | 49 void gaddlist(char ***list, const char *entry); |
23 void greplace(char ***list, const char *search, const char *replace); | 50 void greplace(char ***list, const char *search, const char *replace); |
51 void *listSet(int cmd, void *vparam); | |
24 | 52 |
25 #endif /* MPLAYER_GUI_LIST_H */ | 53 #endif /* MPLAYER_GUI_LIST_H */ |