MPD: IdleFlags.hxx Source File

MPD 0.20.15

IdleFlags.hxx
Go to the documentation of this file.
1 /*
2 * Copyright 2003-2017 The Music Player Daemon Project
3 * http://www.musicpd.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 /*
21 * Support library for the "idle" command.
22 *
23 */
24
25 #ifndef MPD_IDLE_FLAGS_HXX
26 #define MPD_IDLE_FLAGS_HXX
27
28 #include "Compiler.h"
29
31 static constexpr unsigned IDLE_DATABASE = 0x1;
32
35 static constexpr unsigned IDLE_STORED_PLAYLIST = 0x2;
36
38 static constexpr unsigned IDLE_PLAYLIST = 0x4;
39
41 static constexpr unsigned IDLE_PLAYER = 0x8;
42
44 static constexpr unsigned IDLE_MIXER = 0x10;
45
47 static constexpr unsigned IDLE_OUTPUT = 0x20;
48
50 static constexpr unsigned IDLE_OPTIONS = 0x40;
51
53 static constexpr unsigned IDLE_STICKER = 0x80;
54
56 static constexpr unsigned IDLE_UPDATE = 0x100;
57
59 static constexpr unsigned IDLE_SUBSCRIPTION = 0x200;
60
62 static constexpr unsigned IDLE_MESSAGE = 0x400;
63
65 static constexpr unsigned IDLE_NEIGHBOR = 0x800;
66
68 static constexpr unsigned IDLE_MOUNT = 0x1000;
69
73 gcc_const
74 const char*const*
75 idle_get_names() noexcept;
76
81 gcc_nonnull_all gcc_pure
82 unsigned
83 idle_parse_name(const char *name) noexcept;
84
85 #endif
IDLE_DATABASE
static constexpr unsigned IDLE_DATABASE
song database has been updated
Definition: IdleFlags.hxx:31
gcc_nonnull_all
#define gcc_nonnull_all
Definition: Compiler.h:122
idle_get_names
gcc_const const char *const * idle_get_names() noexcept
Get idle names.
IDLE_NEIGHBOR
static constexpr unsigned IDLE_NEIGHBOR
a neighbor was found or lost
Definition: IdleFlags.hxx:65
IDLE_OUTPUT
static constexpr unsigned IDLE_OUTPUT
an audio output device has been enabled or disabled
Definition: IdleFlags.hxx:47
IDLE_SUBSCRIPTION
static constexpr unsigned IDLE_SUBSCRIPTION
a client has subscribed or unsubscribed to/from a channel
Definition: IdleFlags.hxx:59
IDLE_UPDATE
static constexpr unsigned IDLE_UPDATE
a database update has started or finished.
Definition: IdleFlags.hxx:56
IDLE_STICKER
static constexpr unsigned IDLE_STICKER
a sticker has been modified.
Definition: IdleFlags.hxx:53
IDLE_PLAYLIST
static constexpr unsigned IDLE_PLAYLIST
the current playlist has been modified
Definition: IdleFlags.hxx:38
Compiler.h
IDLE_MESSAGE
static constexpr unsigned IDLE_MESSAGE
a message on the subscribed channel was received
Definition: IdleFlags.hxx:62
gcc_const
#define gcc_const
Definition: Compiler.h:109
IDLE_OPTIONS
static constexpr unsigned IDLE_OPTIONS
options have changed: crossfade; random; repeat; ...
Definition: IdleFlags.hxx:50
IDLE_PLAYER
static constexpr unsigned IDLE_PLAYER
the player state has changed: play, stop, pause, seek, ...
Definition: IdleFlags.hxx:41
IDLE_MOUNT
static constexpr unsigned IDLE_MOUNT
the mount list has changed
Definition: IdleFlags.hxx:68
IDLE_STORED_PLAYLIST
static constexpr unsigned IDLE_STORED_PLAYLIST
a stored playlist has been modified, created, deleted or renamed
Definition: IdleFlags.hxx:35
IDLE_MIXER
static constexpr unsigned IDLE_MIXER
the volume has been modified
Definition: IdleFlags.hxx:44
gcc_pure
#define gcc_pure
Definition: Compiler.h:116
idle_parse_name
gcc_nonnull_all gcc_pure unsigned idle_parse_name(const char *name) noexcept
Parse an idle name and return its mask.
name
const Partition const char * name
Definition: Count.hxx:34