Mercurial > mplayer.hg
annotate gui/util/list.h @ 35376:02006c5b3b30
Move add_to_gui_playlist() to util/list.c.
It's not an interface related function, but a playlist utility one.
Additionally, add doxygen comments and change debug message.
As a result, the different implementation of add_to_gui_playlist() of
the Win32 GUI - the GUI uses code from util/list.c - can't have the same
name and thus will be renamed to import_file_into_gui() again, reverting
the r35467 and r35444 changes which were premature.
author | ib |
---|---|
date | Sun, 25 Nov 2012 11:51:35 +0000 |
parents | 42fa91951bd2 |
children | d076af01765d |
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, |
27 PLAYLIST_ITEM_SET_CURR, | |
28 PLAYLIST_ITEM_GET_CURR, | |
29 PLAYLIST_ITEM_GET_PREV, | |
30 PLAYLIST_ITEM_GET_NEXT, | |
31 PLAYLIST_ITEM_DEL_CURR, | |
32 PLAYLIST_DELETE, | |
34668 | 33 URLLIST_GET, |
34663 | 34 URLLIST_ITEM_ADD, |
35 URLLIST_DELETE | |
36 }; | |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
37 |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
38 typedef struct plItem { |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
39 char *path; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
40 char *name; |
34612 | 41 struct plItem *prev, *next; |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
42 } plItem; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
43 |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
44 typedef struct urlItem { |
34612 | 45 char *url; |
33742
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
46 struct urlItem *next; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
47 } urlItem; |
e1539e14d60f
Move purely list related parts of gtkSet() from interface.c to list.c.
ib
parents:
33741
diff
changeset
|
48 |
34637 | 49 /// @name list manager (playlist, URL list) |
34610 | 50 void *listMgr(int cmd, void *data); |
51 | |
34637 | 52 /// @name char pointer list operations |
34610 | 53 //@{ |
54 void listRepl(char ***list, const char *search, const char *replace); | |
55 void listSet(char ***list, const char *entry); | |
56 //@} | |
33741 | 57 |
35376 | 58 /// @name high-level list operations |
59 //@{ | |
60 int add_to_gui_playlist(const char *what, int how); | |
61 //@} | |
62 | |
33741 | 63 #endif /* MPLAYER_GUI_LIST_H */ |