00001 /* 00002 * Copyright (C) 2003-2009 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 }; 00054 00058 void 00059 idle_init(void); 00060 00064 void 00065 idle_deinit(void); 00066 00071 void 00072 idle_add(unsigned flags); 00073 00077 unsigned 00078 idle_get(void); 00079 00083 const char*const* 00084 idle_get_names(void); 00085 00086 #endif