Mercurial > audlegacy
annotate audacious/playlist.h @ 2083:0d37e05dbad3 trunk
[svn] - more updates
author | nenolod |
---|---|
date | Mon, 11 Dec 2006 03:44:07 -0800 |
parents | df6cf9cb531e |
children | 4caeed450f2f |
rev | line source |
---|---|
1230
a5d5f404b933
[svn] - attach a TitleInput tuple to the PlaylistEntry class.
nenolod
parents:
984
diff
changeset
|
1 /* Audacious - Cross-platform multimedia player |
2077
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
2 * Copyright (C) 2005-2007 William Pitcock, Tony Vroon, George Averill, |
1230
a5d5f404b933
[svn] - attach a TitleInput tuple to the PlaylistEntry class.
nenolod
parents:
984
diff
changeset
|
3 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa. |
a5d5f404b933
[svn] - attach a TitleInput tuple to the PlaylistEntry class.
nenolod
parents:
984
diff
changeset
|
4 * |
a5d5f404b933
[svn] - attach a TitleInput tuple to the PlaylistEntry class.
nenolod
parents:
984
diff
changeset
|
5 * XMMS - Cross-platform multimedia player |
0 | 6 * Copyright (C) 1998-2003 Peter Alm, Mikael Alm, Olle Hallnas, |
7 * Thomas Nilsson and 4Front Technologies | |
8 * Copyright (C) 1999-2003 Haavard Kvaalen | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
1459 | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 23 */ |
24 #ifndef PLAYLIST_H | |
25 #define PLAYLIST_H | |
26 | |
27 #include <glib.h> | |
1736
fed902161f2a
[svn] - use audacious/titlestring.h instead of libaudacious/titlestring.h
nenolod
parents:
1584
diff
changeset
|
28 #include "audacious/titlestring.h" |
355
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
0
diff
changeset
|
29 #include "input.h" |
0 | 30 |
1738 | 31 G_BEGIN_DECLS |
32 | |
0 | 33 typedef enum { |
34 PLAYLIST_SORT_PATH, | |
35 PLAYLIST_SORT_FILENAME, | |
36 PLAYLIST_SORT_TITLE, | |
1251 | 37 PLAYLIST_SORT_ARTIST, |
1415 | 38 PLAYLIST_SORT_DATE, |
1430
740c08db08d9
[svn] via Christian Birchinger <joker -at- netswarm.net>:
nenolod
parents:
1415
diff
changeset
|
39 PLAYLIST_SORT_TRACK, |
740c08db08d9
[svn] via Christian Birchinger <joker -at- netswarm.net>:
nenolod
parents:
1415
diff
changeset
|
40 PLAYLIST_SORT_PLAYLIST |
0 | 41 } PlaylistSortType; |
42 | |
43 typedef enum { | |
852
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
44 PLAYLIST_DUPS_PATH, |
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
45 PLAYLIST_DUPS_FILENAME, |
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
46 PLAYLIST_DUPS_TITLE |
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
47 } PlaylistDupsType; |
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
48 |
bcff46a2558d
[svn] added multiple 'remove duplicates' (by title, by filename, by path+filename)
giacomo
parents:
840
diff
changeset
|
49 typedef enum { |
0 | 50 PLAYLIST_FORMAT_UNKNOWN = -1, |
51 PLAYLIST_FORMAT_M3U, | |
52 PLAYLIST_FORMAT_PLS, | |
53 PLAYLIST_FORMAT_COUNT | |
54 } PlaylistFormat; | |
55 | |
56 #define PLAYLIST_ENTRY(x) ((PlaylistEntry*)(x)) | |
2077
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
57 typedef struct _PlaylistEntry { |
0 | 58 gchar *filename; |
59 gchar *title; | |
60 gint length; | |
61 gboolean selected; | |
355
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
0
diff
changeset
|
62 InputPlugin *decoder; |
1230
a5d5f404b933
[svn] - attach a TitleInput tuple to the PlaylistEntry class.
nenolod
parents:
984
diff
changeset
|
63 TitleInput *tuple; /* cached entry tuple, if available */ |
2077
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
64 } PlaylistEntry; |
0 | 65 |
2077
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
66 #define PLAYLIST(x) ((Playlist *)(x)) |
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
67 typedef struct _Playlist { |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
68 gchar *title; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
69 gchar *filename; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
70 gint length; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
71 GList *entries; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
72 GList *queue; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
73 GList *shuffle; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
74 PlaylistEntry *position; /* bleah */ |
2077
e074c9ba7072
[svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists.
nenolod
parents:
1738
diff
changeset
|
75 } Playlist; |
0 | 76 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
77 typedef enum { |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
78 PLAYLIST_ASSOC_LINEAR, |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
79 PLAYLIST_ASSOC_QUEUE, |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
80 PLAYLIST_ASSOC_SHUFFLE |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
81 } PlaylistAssociation; |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
82 |
0 | 83 PlaylistEntry *playlist_entry_new(const gchar * filename, |
355
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
0
diff
changeset
|
84 const gchar * title, const gint len, |
1c701dfe5098
[svn] Cache the decoder used for each PlaylistEntry. This reduces the amount
nenolod
parents:
0
diff
changeset
|
85 InputPlugin * dec); |
0 | 86 void playlist_entry_free(PlaylistEntry * entry); |
87 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
88 void playlist_entry_associate(Playlist * playlist, PlaylistEntry * entry, |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
89 PlaylistAssociation assoc); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
90 |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
91 void playlist_entry_associate_pos(Playlist * playlist, PlaylistEntry * entry, |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
92 PlaylistAssociation assoc, gint pos); |
0 | 93 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
94 void playlist_init(void); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
95 void playlist_clear(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
96 void playlist_delete(Playlist *playlist, gboolean crop); |
0 | 97 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
98 gboolean playlist_add(Playlist *playlist, const gchar * filename); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
99 gboolean playlist_ins(Playlist *playlist, const gchar * filename, gint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
100 guint playlist_add_dir(Playlist *playlist, const gchar * dir); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
101 guint playlist_ins_dir(Playlist *playlist, const gchar * dir, gint pos, gboolean background); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
102 guint playlist_add_url(Playlist *playlist, const gchar * url); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
103 guint playlist_ins_url(Playlist *playlist, const gchar * string, gint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
104 |
2083 | 105 void playlist_set_info(Playlist *playlist, const gchar * title, gint length, gint rate, |
0 | 106 gint freq, gint nch); |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
107 void playlist_check_pos_current(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
108 void playlist_next(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
109 void playlist_prev(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
110 void playlist_queue(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
111 void playlist_queue_position(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
112 void playlist_queue_remove(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
113 gint playlist_queue_get_length(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
114 gboolean playlist_is_position_queued(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
115 void playlist_clear_queue(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
116 gint playlist_get_queue_position(Playlist *playlist, PlaylistEntry * entry); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
117 gint playlist_get_queue_position_number(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
118 gint playlist_get_queue_qposition_number(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
119 void playlist_eof_reached(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
120 void playlist_set_position(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
121 gint playlist_get_length(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
122 gint playlist_get_length_nolock(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
123 gint playlist_get_position(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
124 gint playlist_get_position_nolock(Playlist *playlist); |
0 | 125 gchar *playlist_get_info_text(void); |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
126 gint playlist_get_current_length(Playlist *playlist); |
0 | 127 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
128 gboolean playlist_save(Playlist *playlist, const gchar * filename); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
129 gboolean playlist_load(Playlist *playlist, const gchar * filename); |
0 | 130 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
131 /* returns the current selected *linear* playlist */ |
0 | 132 GList *playlist_get(void); |
133 | |
134 void playlist_start_get_info_thread(void); | |
135 void playlist_stop_get_info_thread(); | |
136 void playlist_start_get_info_scan(void); | |
137 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
138 void playlist_sort(Playlist *playlist, PlaylistSortType type); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
139 void playlist_sort_selected(Playlist *playlist, PlaylistSortType type); |
0 | 140 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
141 void playlist_reverse(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
142 void playlist_random(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
143 void playlist_remove_duplicates(Playlist *playlist, PlaylistDupsType); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
144 void playlist_remove_dead_files(Playlist *playlist); |
0 | 145 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
146 void playlist_fileinfo_current(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
147 void playlist_fileinfo(Playlist *playlist, guint pos); |
0 | 148 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
149 void playlist_delete_index(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
150 void playlist_delete_filenames(Playlist *playlist, GList * filenames); |
0 | 151 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
152 PlaylistEntry *playlist_get_entry_to_play(Playlist *playlist); |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
355
diff
changeset
|
153 |
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
355
diff
changeset
|
154 /* XXX this is for reverse compatibility --nenolod */ |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
155 const gchar *playlist_get_filename_to_play(Playlist *playlist); |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
355
diff
changeset
|
156 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
157 gchar *playlist_get_filename(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
158 gchar *playlist_get_songtitle(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
159 TitleInput *playlist_get_tuple(Playlist *playlist, guint pos); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
160 gint playlist_get_songtime(Playlist *playlist, guint pos); |
0 | 161 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
162 GList *playlist_get_selected(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
163 GList *playlist_get_selected_list(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
164 int playlist_get_num_selected(Playlist *playlist); |
0 | 165 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
166 void playlist_get_total_time(Playlist *playlist, gulong * total_time, gulong * selection_time, |
0 | 167 gboolean * total_more, |
168 gboolean * selection_more); | |
169 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
170 void playlist_select_all(Playlist *playlist, gboolean set); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
171 void playlist_select_range(Playlist *playlist, gint min, gint max, gboolean sel); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
172 void playlist_select_invert_all(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
173 gboolean playlist_select_invert(Playlist *playlist, guint pos); |
0 | 174 |
175 gboolean playlist_read_info_selection(void); | |
176 void playlist_read_info(guint pos); | |
177 | |
178 void playlist_set_shuffle(gboolean shuffle); | |
179 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
180 void playlist_clear_selected(Playlist *playlist); |
0 | 181 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
182 GList *get_playlist_nth(Playlist *playlist, guint); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
183 gboolean playlist_set_current_name(Playlist *playlist, const gchar * filename); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
184 const gchar *playlist_get_current_name(Playlist *playlist); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
185 Playlist *playlist_new(void); |
0 | 186 |
187 PlaylistFormat playlist_format_get_from_name(const gchar * filename); | |
188 gboolean is_playlist_name(const gchar * filename); | |
189 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
190 #define PLAYLIST_LOCK() G_LOCK(playlists) |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
191 #define PLAYLIST_UNLOCK() G_UNLOCK(playlists) |
0 | 192 |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
193 G_LOCK_EXTERN(playlists); |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
355
diff
changeset
|
194 |
2083 | 195 extern void playlist_load_ins_file(Playlist *playlist, const gchar * filename, |
1554 | 196 const gchar * playlist_name, gint pos, |
197 const gchar * title, gint len); | |
198 | |
2083 | 199 extern void playlist_load_ins_file_tuple(Playlist *playlist, const gchar * filename_p, |
1584 | 200 const gchar * playlist_name, gint pos, |
201 TitleInput *tuple); | |
202 | |
2080
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
203 Playlist *playlist_get_active(void); |
df6cf9cb531e
[svn] - this commit breaks the API. I'm not done here, but hopefully the new API is
nenolod
parents:
2078
diff
changeset
|
204 |
1738 | 205 G_END_DECLS |
1584 | 206 |
0 | 207 #endif |