Go to the documentation of this file.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
00037 #ifndef MPD_PLAYER_H
00038 #define MPD_PLAYER_H
00039
00040 #include <mpd/compiler.h>
00041
00042 #include <stdbool.h>
00043
00044 struct mpd_connection;
00045 struct mpd_song;
00046
00047 #ifdef __cplusplus
00048 extern "C" {
00049 #endif
00050
00055 bool
00056 mpd_send_current_song(struct mpd_connection *connection);
00057
00065 mpd_malloc
00066 struct mpd_song *
00067 mpd_run_current_song(struct mpd_connection *connection);
00068
00074 bool
00075 mpd_send_play(struct mpd_connection *connection);
00076
00077 bool
00078 mpd_run_play(struct mpd_connection *connection);
00079
00087 bool
00088 mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos);
00089
00090 bool
00091 mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos);
00092
00100 bool
00101 mpd_send_play_id(struct mpd_connection *connection, unsigned id);
00102
00103 bool
00104 mpd_run_play_id(struct mpd_connection *connection, unsigned song_id);
00105
00106 bool
00107 mpd_send_stop(struct mpd_connection *connection);
00108
00109 bool
00110 mpd_run_stop(struct mpd_connection *connection);
00111
00117 bool
00118 mpd_send_toggle_pause(struct mpd_connection *connection);
00119
00120 bool
00121 mpd_run_toggle_pause(struct mpd_connection *connection);
00122
00123 bool
00124 mpd_send_pause(struct mpd_connection *connection, bool mode);
00125
00126 bool
00127 mpd_run_pause(struct mpd_connection *connection, bool mode);
00128
00129 bool
00130 mpd_send_next(struct mpd_connection *connection);
00131
00132 bool
00133 mpd_run_next(struct mpd_connection *connection);
00134
00135 bool
00136 mpd_send_previous(struct mpd_connection *connection);
00137
00138 bool
00139 mpd_run_previous(struct mpd_connection *connection);
00140
00149 bool
00150 mpd_send_seek_pos(struct mpd_connection *connection,
00151 unsigned song_pos, unsigned t);
00152
00153 bool
00154 mpd_run_seek_pos(struct mpd_connection *connection,
00155 unsigned song_pos, unsigned t);
00156
00165 bool
00166 mpd_send_seek_id(struct mpd_connection *connection, unsigned id, unsigned t);
00167
00168 bool
00169 mpd_run_seek_id(struct mpd_connection *connection,
00170 unsigned song_id, unsigned t);
00171
00172 bool
00173 mpd_send_repeat(struct mpd_connection *connection, bool mode);
00174
00175 bool
00176 mpd_run_repeat(struct mpd_connection *connection, bool mode);
00177
00178 bool
00179 mpd_send_random(struct mpd_connection *connection, bool mode);
00180
00181 bool
00182 mpd_run_random(struct mpd_connection *connection, bool mode);
00183
00184 bool
00185 mpd_send_single(struct mpd_connection *connection, bool mode);
00186
00187 bool
00188 mpd_run_single(struct mpd_connection *connection, bool mode);
00189
00190 bool
00191 mpd_send_consume(struct mpd_connection *connection, bool mode);
00192
00193 bool
00194 mpd_run_consume(struct mpd_connection *connection, bool mode);
00195
00196 bool
00197 mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds);
00198
00199 bool
00200 mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds);
00201
00202 bool
00203 mpd_send_mixrampdb(struct mpd_connection *connection, float db);
00204
00205 bool
00206 mpd_run_mixrampdb(struct mpd_connection *connection, float db);
00207
00208 bool
00209 mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds);
00210
00211 bool
00212 mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds);
00213
00214 #ifdef __cplusplus
00215 }
00216 #endif
00217
00218 #endif