libmpdclient 2.9
status.h
Go to the documentation of this file.
1/* libmpdclient
2 (c) 2003-2010 The Music Player Daemon Project
3 This project's homepage is: http://www.musicpd.org
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 - Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 - Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 - Neither the name of the Music Player Daemon nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*/
32
39#ifndef MPD_STATUS_H
40#define MPD_STATUS_H
41
42#include <mpd/compiler.h>
43
44#include <stdbool.h>
45
52
55
58
61};
62
63struct mpd_connection;
64struct mpd_pair;
65struct mpd_audio_format;
66
72struct mpd_status;
73
74#ifdef __cplusplus
75extern "C" {
76#endif
77
85mpd_malloc
86struct mpd_status *
88
93void
94mpd_status_feed(struct mpd_status *status, const struct mpd_pair *pair);
95
102bool
103mpd_send_status(struct mpd_connection *connection);
104
110mpd_malloc
111struct mpd_status *
112mpd_recv_status(struct mpd_connection *connection);
113
120mpd_malloc
121struct mpd_status *
122mpd_run_status(struct mpd_connection *connection);
123
127void mpd_status_free(struct mpd_status * status);
128
133mpd_pure
134int mpd_status_get_volume(const struct mpd_status *status);
135
139mpd_pure
140bool
141mpd_status_get_repeat(const struct mpd_status *status);
142
146mpd_pure
147bool
148mpd_status_get_random(const struct mpd_status *status);
149
153mpd_pure
154bool
155mpd_status_get_single(const struct mpd_status *status);
156
160mpd_pure
161bool
162mpd_status_get_consume(const struct mpd_status *status);
163
168mpd_pure
169unsigned
171
176mpd_pure
177unsigned
179
183mpd_pure
184enum mpd_state
185mpd_status_get_state(const struct mpd_status *status);
186
191mpd_pure
192unsigned
194
198mpd_pure
199float
201
206mpd_pure
207float
209
215mpd_pure
216int
218
223mpd_pure
224int
225mpd_status_get_song_id(const struct mpd_status *status);
226
231mpd_pure
232int
234
239mpd_pure
240int
242
247mpd_pure
248unsigned
250
255mpd_pure
256unsigned
258
262mpd_pure
263unsigned
265
269mpd_pure
270unsigned
272
277mpd_pure
278const struct mpd_audio_format *
280
284mpd_pure
285unsigned
287
291mpd_pure
292const char *
293mpd_status_get_error(const struct mpd_status *status);
294
295#ifdef __cplusplus
296}
297#endif
298
299#endif
Compiler specific definitions.
mpd_pure unsigned mpd_status_get_update_id(const struct mpd_status *status)
mpd_malloc struct mpd_status * mpd_status_begin(void)
mpd_pure unsigned mpd_status_get_queue_version(const struct mpd_status *status)
mpd_pure bool mpd_status_get_random(const struct mpd_status *status)
mpd_pure bool mpd_status_get_repeat(const struct mpd_status *status)
bool mpd_send_status(struct mpd_connection *connection)
mpd_pure unsigned mpd_status_get_kbit_rate(const struct mpd_status *status)
mpd_pure int mpd_status_get_song_id(const struct mpd_status *status)
mpd_pure unsigned mpd_status_get_crossfade(const struct mpd_status *status)
mpd_pure unsigned mpd_status_get_elapsed_ms(const struct mpd_status *status)
mpd_pure int mpd_status_get_next_song_id(const struct mpd_status *status)
mpd_pure unsigned mpd_status_get_total_time(const struct mpd_status *status)
mpd_malloc struct mpd_status * mpd_recv_status(struct mpd_connection *connection)
mpd_pure float mpd_status_get_mixrampdb(const struct mpd_status *status)
mpd_pure unsigned mpd_status_get_elapsed_time(const struct mpd_status *status)
mpd_state
Definition: status.h:49
@ MPD_STATE_STOP
Definition: status.h:54
@ MPD_STATE_UNKNOWN
Definition: status.h:51
@ MPD_STATE_PLAY
Definition: status.h:57
@ MPD_STATE_PAUSE
Definition: status.h:60
void mpd_status_feed(struct mpd_status *status, const struct mpd_pair *pair)
mpd_pure bool mpd_status_get_single(const struct mpd_status *status)
mpd_pure int mpd_status_get_song_pos(const struct mpd_status *status)
mpd_pure enum mpd_state mpd_status_get_state(const struct mpd_status *status)
mpd_pure float mpd_status_get_mixrampdelay(const struct mpd_status *status)
mpd_pure int mpd_status_get_next_song_pos(const struct mpd_status *status)
mpd_pure const char * mpd_status_get_error(const struct mpd_status *status)
mpd_pure const struct mpd_audio_format * mpd_status_get_audio_format(const struct mpd_status *status)
mpd_pure bool mpd_status_get_consume(const struct mpd_status *status)
void mpd_status_free(struct mpd_status *status)
mpd_malloc struct mpd_status * mpd_run_status(struct mpd_connection *connection)
mpd_pure int mpd_status_get_volume(const struct mpd_status *status)
mpd_pure unsigned mpd_status_get_queue_length(const struct mpd_status *status)
Definition: pair.h:41