libmpdclient 2.22
status.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef MPD_STATUS_H
11#define MPD_STATUS_H
12
13#include "compiler.h"
14
15#include <stdbool.h>
16
23
26
29
32};
33
42
45
54
57};
58
67
70
79
82};
83
84struct mpd_connection;
85struct mpd_pair;
86struct mpd_audio_format;
87
93struct mpd_status;
94
95#ifdef __cplusplus
96extern "C" {
97#endif
98
106mpd_malloc
107struct mpd_status *
109
114void
115mpd_status_feed(struct mpd_status *status, const struct mpd_pair *pair);
116
123bool
124mpd_send_status(struct mpd_connection *connection);
125
131mpd_malloc
132struct mpd_status *
133mpd_recv_status(struct mpd_connection *connection);
134
141mpd_malloc
142struct mpd_status *
143mpd_run_status(struct mpd_connection *connection);
144
148void mpd_status_free(struct mpd_status * status);
149
154mpd_pure
155int mpd_status_get_volume(const struct mpd_status *status);
156
160mpd_pure
161bool
162mpd_status_get_repeat(const struct mpd_status *status);
163
167mpd_pure
168bool
169mpd_status_get_random(const struct mpd_status *status);
170
181mpd_pure
184
192const char *
194
204
212mpd_pure
213bool
214mpd_status_get_single(const struct mpd_status *status);
215
225mpd_pure
228
236const char *
238
248
256mpd_pure
257bool
258mpd_status_get_consume(const struct mpd_status *status);
259
264mpd_pure
265unsigned
267
272mpd_pure
273unsigned
275
279mpd_pure
280enum mpd_state
281mpd_status_get_state(const struct mpd_status *status);
282
287mpd_pure
288unsigned
290
296mpd_pure
297float
299
306mpd_pure
307float
309
316mpd_pure
317int
319
324mpd_pure
325int
326mpd_status_get_song_id(const struct mpd_status *status);
327
334mpd_pure
335int
337
344mpd_pure
345int
347
356mpd_pure
357unsigned
359
366mpd_pure
367unsigned
369
373mpd_pure
374unsigned
376
380mpd_pure
381unsigned
383
388mpd_pure
389const struct mpd_audio_format *
391
395mpd_pure
396unsigned
398
403mpd_pure
404const char *
406
410mpd_pure
411const char *
412mpd_status_get_error(const struct mpd_status *status);
413
414#ifdef __cplusplus
415}
416#endif
417
418#endif
const char * mpd_status_get_partition(const struct mpd_status *status)
enum mpd_single_state mpd_status_get_single_state(const struct mpd_status *status)
int mpd_status_get_volume(const struct mpd_status *status)
unsigned mpd_status_get_queue_length(const struct mpd_status *status)
int mpd_status_get_song_id(const struct mpd_status *status)
bool mpd_status_get_consume(const struct mpd_status *status)
mpd_single_state
Definition status.h:39
@ MPD_SINGLE_UNKNOWN
Definition status.h:56
@ MPD_SINGLE_ONESHOT
Definition status.h:53
@ MPD_SINGLE_OFF
Definition status.h:41
@ MPD_SINGLE_ON
Definition status.h:44
unsigned mpd_status_get_total_time(const struct mpd_status *status)
mpd_consume_state
Definition status.h:64
@ MPD_CONSUME_UNKNOWN
Definition status.h:81
@ MPD_CONSUME_ONESHOT
Definition status.h:78
@ MPD_CONSUME_OFF
Definition status.h:66
@ MPD_CONSUME_ON
Definition status.h:69
bool mpd_status_get_random(const struct mpd_status *status)
enum mpd_single_state mpd_parse_single_state(const char *p)
bool mpd_send_status(struct mpd_connection *connection)
enum mpd_consume_state mpd_status_get_consume_state(const struct mpd_status *status)
unsigned mpd_status_get_kbit_rate(const struct mpd_status *status)
float mpd_status_get_mixrampdb(const struct mpd_status *status)
enum mpd_consume_state mpd_parse_consume_state(const char *p)
unsigned mpd_status_get_queue_version(const struct mpd_status *status)
unsigned mpd_status_get_update_id(const struct mpd_status *status)
int mpd_status_get_next_song_id(const struct mpd_status *status)
struct mpd_status * mpd_status_begin(void)
mpd_state
Definition status.h:20
@ MPD_STATE_STOP
Definition status.h:25
@ MPD_STATE_UNKNOWN
Definition status.h:22
@ MPD_STATE_PLAY
Definition status.h:28
@ MPD_STATE_PAUSE
Definition status.h:31
void mpd_status_feed(struct mpd_status *status, const struct mpd_pair *pair)
const char * mpd_status_get_error(const struct mpd_status *status)
unsigned mpd_status_get_elapsed_time(const struct mpd_status *status)
enum mpd_state mpd_status_get_state(const struct mpd_status *status)
const char * mpd_lookup_single_state(enum mpd_single_state state)
const char * mpd_lookup_consume_state(enum mpd_consume_state state)
unsigned mpd_status_get_crossfade(const struct mpd_status *status)
struct mpd_status * mpd_run_status(struct mpd_connection *connection)
float mpd_status_get_mixrampdelay(const struct mpd_status *status)
int mpd_status_get_next_song_pos(const struct mpd_status *status)
bool mpd_status_get_single(const struct mpd_status *status)
int mpd_status_get_song_pos(const struct mpd_status *status)
void mpd_status_free(struct mpd_status *status)
bool mpd_status_get_repeat(const struct mpd_status *status)
const struct mpd_audio_format * mpd_status_get_audio_format(const struct mpd_status *status)
struct mpd_status * mpd_recv_status(struct mpd_connection *connection)
unsigned mpd_status_get_elapsed_ms(const struct mpd_status *status)