00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00041 #ifndef LIBMPDCLIENT_PLAYLIST_H
00042 #define LIBMPDCLIENT_PLAYLIST_H
00043
00044 #include <mpd/compiler.h>
00045
00046 #include <stdbool.h>
00047 #include <time.h>
00048
00049 struct mpd_pair;
00050 struct mpd_connection;
00051
00059 struct mpd_playlist;
00060
00061 #ifdef __cplusplus
00062 extern "C" {
00063 #endif
00064
00068 void
00069 mpd_playlist_free(struct mpd_playlist *playlist);
00070
00076 mpd_malloc
00077 struct mpd_playlist *
00078 mpd_playlist_dup(const struct mpd_playlist *playlist);
00079
00084 mpd_pure
00085 const char *
00086 mpd_playlist_get_path(const struct mpd_playlist *playlist);
00087
00092 mpd_pure
00093 time_t
00094 mpd_playlist_get_last_modified(const struct mpd_playlist *playlist);
00095
00104 mpd_malloc
00105 struct mpd_playlist *
00106 mpd_playlist_begin(const struct mpd_pair *pair);
00107
00116 bool
00117 mpd_playlist_feed(struct mpd_playlist *playlist, const struct mpd_pair *pair);
00118
00125 mpd_malloc
00126 struct mpd_playlist *
00127 mpd_recv_playlist(struct mpd_connection *connection);
00128
00136 bool
00137 mpd_send_list_playlist(struct mpd_connection *connection, const char *name);
00138
00146 bool
00147 mpd_send_list_playlist_meta(struct mpd_connection *connection, const char *name);
00148
00149 bool
00150 mpd_send_playlist_clear(struct mpd_connection *connection, const char *name);
00151
00152 bool
00153 mpd_run_playlist_clear(struct mpd_connection *connection, const char *name);
00154
00155 bool
00156 mpd_send_playlist_add(struct mpd_connection *connection, const char *name,
00157 const char *path);
00158
00159 bool
00160 mpd_run_playlist_add(struct mpd_connection *connection,
00161 const char *name, const char *path);
00162
00163 bool
00164 mpd_send_playlist_move(struct mpd_connection *connection, const char *name,
00165 unsigned from, unsigned to);
00166
00167 bool
00168 mpd_send_playlist_delete(struct mpd_connection *connection, const char *name,
00169 unsigned pos);
00170
00171 bool
00172 mpd_run_playlist_delete(struct mpd_connection *connection,
00173 const char *name, unsigned pos);
00174
00175 bool
00176 mpd_send_save(struct mpd_connection *connection, const char *name);
00177
00178 bool
00179 mpd_run_save(struct mpd_connection *connection, const char *name);
00180
00181 bool
00182 mpd_send_load(struct mpd_connection *connection, const char *name);
00183
00184 bool
00185 mpd_run_load(struct mpd_connection *connection, const char *name);
00186
00187 bool
00188 mpd_send_rename(struct mpd_connection *connection,
00189 const char *from, const char *to);
00190
00191 bool
00192 mpd_run_rename(struct mpd_connection *connection,
00193 const char *from, const char *to);
00194
00195 bool
00196 mpd_send_rm(struct mpd_connection *connection, const char *name);
00197
00198 bool
00199 mpd_run_rm(struct mpd_connection *connection, const char *name);
00200
00201 #ifdef __cplusplus
00202 }
00203 #endif
00204
00205 #endif