libmpdclient 2.6

- Main Page
- Classes
- Files

- File List
- File Members

# mpd/player.h

Go to the documentation of this file.

    00001 /* libmpdclient
    00002    (c) 2003-2010 The Music Player Daemon Project
    00003    This project's homepage is: http://www.musicpd.org
    00004
    00005    Redistribution and use in source and binary forms, with or without
    00006    modification, are permitted provided that the following conditions
    00007    are met:
    00008
    00009    - Redistributions of source code must retain the above copyright
    00010    notice, this list of conditions and the following disclaimer.
    00011
    00012    - Redistributions in binary form must reproduce the above copyright
    00013    notice, this list of conditions and the following disclaimer in the
    00014    documentation and/or other materials provided with the distribution.
    00015
    00016    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    00017    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    00018    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    00019    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
    00020    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    00021    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    00022    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    00023    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    00024    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    00025    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00026    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    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 bool
    00215 mpd_send_clearerror(struct mpd_connection *connection);
    00216
    00217 bool
    00218 mpd_run_clearerror(struct mpd_connection *connection);
    00219
    00220 #ifdef __cplusplus
    00221 }
    00222 #endif
    00223
    00224 #endif