libmpdclient 2.22
idle.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_IDLE_H
11#define MPD_IDLE_H
12
13#include "compiler.h"
14
15#include <stdbool.h>
16
17struct mpd_pair;
18struct mpd_connection;
19
32
36
39
42
45
48
51
54
57
60
63
66
69
72
75};
76
77#ifdef __cplusplus
78extern "C" {
79#endif
80
87mpd_const
88const char *
90
97mpd_pure
98enum mpd_idle
99mpd_idle_name_parse(const char *name);
100
110bool
111mpd_send_idle(struct mpd_connection *connection);
112
120bool
121mpd_send_idle_mask(struct mpd_connection *connection, enum mpd_idle mask);
122
131bool
132mpd_send_noidle(struct mpd_connection *connection);
133
141mpd_pure
142enum mpd_idle
143mpd_idle_parse_pair(const struct mpd_pair *pair);
144
157enum mpd_idle
158mpd_recv_idle(struct mpd_connection *connection, bool disable_timeout);
159
167enum mpd_idle
168mpd_run_idle(struct mpd_connection *connection);
169
178enum mpd_idle
179mpd_run_idle_mask(struct mpd_connection *connection, enum mpd_idle mask);
180
189enum mpd_idle
190mpd_run_noidle(struct mpd_connection *connection);
191
192#ifdef __cplusplus
193}
194#endif
195
196#endif
bool mpd_send_idle_mask(struct mpd_connection *connection, enum mpd_idle mask)
enum mpd_idle mpd_idle_name_parse(const char *name)
const char * mpd_idle_name(enum mpd_idle idle)
mpd_idle
Definition idle.h:29
@ MPD_IDLE_OUTPUT
Definition idle.h:50
@ MPD_IDLE_NEIGHBOR
Definition idle.h:71
@ MPD_IDLE_QUEUE
Definition idle.h:38
@ MPD_IDLE_MIXER
Definition idle.h:47
@ MPD_IDLE_PARTITION
Definition idle.h:68
@ MPD_IDLE_PLAYER
Definition idle.h:44
@ MPD_IDLE_UPDATE
Definition idle.h:56
@ MPD_IDLE_STORED_PLAYLIST
Definition idle.h:35
@ MPD_IDLE_DATABASE
Definition idle.h:31
@ MPD_IDLE_SUBSCRIPTION
Definition idle.h:62
@ MPD_IDLE_MOUNT
Definition idle.h:74
@ MPD_IDLE_MESSAGE
Definition idle.h:65
@ MPD_IDLE_OPTIONS
Definition idle.h:53
@ MPD_IDLE_STICKER
Definition idle.h:59
@ MPD_IDLE_PLAYLIST
Definition idle.h:41
bool mpd_send_noidle(struct mpd_connection *connection)
enum mpd_idle mpd_run_idle(struct mpd_connection *connection)
enum mpd_idle mpd_run_idle_mask(struct mpd_connection *connection, enum mpd_idle mask)
enum mpd_idle mpd_run_noidle(struct mpd_connection *connection)
enum mpd_idle mpd_idle_parse_pair(const struct mpd_pair *pair)
enum mpd_idle mpd_recv_idle(struct mpd_connection *connection, bool disable_timeout)
bool mpd_send_idle(struct mpd_connection *connection)