MPD 0.17~git
|
00001 /* 00002 * Copyright (C) 2003-2011 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 00058 IDLE_SUBSCRIPTION = 0x200, 00059 00061 IDLE_MESSAGE = 0x400, 00062 }; 00063 00067 void 00068 idle_init(void); 00069 00073 void 00074 idle_deinit(void); 00075 00080 void 00081 idle_add(unsigned flags); 00082 00086 unsigned 00087 idle_get(void); 00088 00092 const char*const* 00093 idle_get_names(void); 00094 00095 #endif