idle.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_IDLE_H
#define MPD_IDLE_H
#include "compiler.h"
#include <stdbool.h>
struct mpd_pair;
struct mpd_connection;
enum mpd_idle {
MPD_IDLE_DATABASE = 0x1,
MPD_IDLE_STORED_PLAYLIST = 0x2,
MPD_IDLE_QUEUE = 0x4,
MPD_IDLE_PLAYLIST = MPD_IDLE_QUEUE,
MPD_IDLE_PLAYER = 0x8,
MPD_IDLE_MIXER = 0x10,
MPD_IDLE_OUTPUT = 0x20,
MPD_IDLE_OPTIONS = 0x40,
MPD_IDLE_UPDATE = 0x80,
MPD_IDLE_STICKER = 0x100,
MPD_IDLE_SUBSCRIPTION = 0x200,
MPD_IDLE_MESSAGE = 0x400,
MPD_IDLE_PARTITION = 0x800,
MPD_IDLE_NEIGHBOR = 0x1000,
MPD_IDLE_MOUNT = 0x2000,
};
#ifdef __cplusplus
extern "C" {
#endif
mpd_const
const char *
mpd_idle_name(enum mpd_idle idle);
mpd_pure
enum mpd_idle
mpd_idle_name_parse(const char *name);
bool
mpd_send_idle(struct mpd_connection *connection);
bool
mpd_send_idle_mask(struct mpd_connection *connection, enum mpd_idle mask);
bool
mpd_send_noidle(struct mpd_connection *connection);
mpd_pure
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);
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);
#ifdef __cplusplus
}
#endif
#endif
mpd_send_idle_mask
bool mpd_send_idle_mask(struct mpd_connection *connection, enum mpd_idle mask)
mpd_idle_name_parse
enum mpd_idle mpd_idle_name_parse(const char *name)
mpd_idle_name
const char * mpd_idle_name(enum mpd_idle idle)
mpd_idle
mpd_idle
Definition idle.h:29
MPD_IDLE_OUTPUT
@ MPD_IDLE_OUTPUT
Definition idle.h:50
MPD_IDLE_NEIGHBOR
@ MPD_IDLE_NEIGHBOR
Definition idle.h:71
MPD_IDLE_QUEUE
@ MPD_IDLE_QUEUE
Definition idle.h:38
MPD_IDLE_MIXER
@ MPD_IDLE_MIXER
Definition idle.h:47
MPD_IDLE_PARTITION
@ MPD_IDLE_PARTITION
Definition idle.h:68
MPD_IDLE_PLAYER
@ MPD_IDLE_PLAYER
Definition idle.h:44
MPD_IDLE_UPDATE
@ MPD_IDLE_UPDATE
Definition idle.h:56
MPD_IDLE_STORED_PLAYLIST
@ MPD_IDLE_STORED_PLAYLIST
Definition idle.h:35
MPD_IDLE_DATABASE
@ MPD_IDLE_DATABASE
Definition idle.h:31
MPD_IDLE_SUBSCRIPTION
@ MPD_IDLE_SUBSCRIPTION
Definition idle.h:62
MPD_IDLE_MOUNT
@ MPD_IDLE_MOUNT
Definition idle.h:74
MPD_IDLE_MESSAGE
@ MPD_IDLE_MESSAGE
Definition idle.h:65
MPD_IDLE_OPTIONS
@ MPD_IDLE_OPTIONS
Definition idle.h:53
MPD_IDLE_STICKER
@ MPD_IDLE_STICKER
Definition idle.h:59
MPD_IDLE_PLAYLIST
@ MPD_IDLE_PLAYLIST
Definition idle.h:41
mpd_send_noidle
bool mpd_send_noidle(struct mpd_connection *connection)
mpd_run_idle
enum mpd_idle mpd_run_idle(struct mpd_connection *connection)
mpd_run_idle_mask
enum mpd_idle mpd_run_idle_mask(struct mpd_connection *connection, enum mpd_idle mask)
mpd_run_noidle
enum mpd_idle mpd_run_noidle(struct mpd_connection *connection)
mpd_idle_parse_pair
enum mpd_idle mpd_idle_parse_pair(const struct mpd_pair *pair)
mpd_recv_idle
enum mpd_idle mpd_recv_idle(struct mpd_connection *connection, bool disable_timeout)
mpd_send_idle
bool mpd_send_idle(struct mpd_connection *connection)
mpd_connection
mpd_pair
Definition pair.h:16