MPD

src/idle.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2003-2010 The Music Player Daemon Project
00003  * http://www.musicpd.org
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License along
00016  * with this program; if not, write to the Free Software Foundation, Inc.,
00017  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018  */
00019 
00020 /*
00021  * Support library for the "idle" command.
00022  *
00023  */
00024 
00025 #ifndef MPD_IDLE_H
00026 #define MPD_IDLE_H
00027 
00028 enum {
00030         IDLE_DATABASE = 0x1,
00031 
00034         IDLE_STORED_PLAYLIST = 0x2,
00035 
00037         IDLE_PLAYLIST = 0x4,
00038 
00040         IDLE_PLAYER = 0x8,
00041 
00043         IDLE_MIXER = 0x10,
00044 
00046         IDLE_OUTPUT = 0x20,
00047 
00049         IDLE_OPTIONS = 0x40,
00050 
00052         IDLE_STICKER = 0x80,
00053 
00055         IDLE_UPDATE = 0x100,
00056 };
00057 
00061 void
00062 idle_init(void);
00063 
00067 void
00068 idle_deinit(void);
00069 
00074 void
00075 idle_add(unsigned flags);
00076 
00080 unsigned
00081 idle_get(void);
00082 
00086 const char*const*
00087 idle_get_names(void);
00088 
00089 #endif