Mercurial > mplayer.hg
annotate gui/util/list.h @ 35627:51358e7bde85
Cosmetic: Add and adjust comments.
author | ib |
---|---|
date | Thu, 10 Jan 2013 10:48:27 +0000 |
parents | 7d1d7f783975 |
children | a5f7a861a293 |
rev | line source |
---|---|
33741 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
19 #ifndef MPLAYER_GUI_LIST_H | |
20 #define MPLAYER_GUI_LIST_H | |
21 | |
34663 | 22 /// listMgr() commands |
23 enum { | |
34667 | 24 PLAYLIST_GET, |
34681 | 25 PLAYLIST_ITEM_APPEND, |
34663 | 26 PLAYLIST_ITEM_INSERT, |
35460 | 27 PLAYLIST_ITEM_FIND, |
34663 | 28 PLAYLIST_ITEM_SET_CURR, |
29 PLAYLIST_ITEM_GET_CURR, | |
35458 | 30 PLAYLIST_ITEM_GET_POS, |
34663 | 31 PLAYLIST_ITEM_GET_PREV, |
32 PLAYLIST_ITEM_GET_NEXT, | |
33 PLAYLIST_ITEM_DEL_CURR, | |
34 PLAYLIST_DELETE, | |
34668 | 35 URLLIST_GET, |
34663 | 36 URLLIST_ITEM_ADD, |
37 URLLIST_DELETE | |
38 }; | |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
39 |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
40 typedef struct plItem { |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
41 char *path; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
42 char *name; |
34612 | 43 struct plItem *prev, *next; |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
44 } plItem; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
45 |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
46 typedef struct urlItem { |
34612 | 47 char *url; |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
48 struct urlItem *next; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
49 } urlItem; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
50 |
34637 | 51 /// @name list manager (playlist, URL list) |
34610 | 52 void *listMgr(int cmd, void *data); |
53 | |
34637 | 54 /// @name char pointer list operations |
34610 | 55 //@{ |
56 void listRepl(char ***list, const char *search, const char *replace); | |
57 void listSet(char ***list, const char *entry); | |
58 //@} | |
33741 | 59 |
35376 | 60 /// @name high-level list operations |
61 //@{ | |
62 int add_to_gui_playlist(const char *what, int how); | |
63 //@} | |
64 | |
33741 | 65 #endif /* MPLAYER_GUI_LIST_H */ |