00001 // event.h 00002 // 00003 /**************************************************************************** 00004 liblscp - LinuxSampler Control Protocol API 00005 Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved. 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public 00009 License as published by the Free Software Foundation; either 00010 version 2.1 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 *****************************************************************************/ 00022 00023 #ifndef __LSCP_EVENT_H 00024 #define __LSCP_EVENT_H 00025 00026 #include "lscp/socket.h" 00027 00028 #if defined(__cplusplus) 00029 extern "C" { 00030 #endif 00031 00032 00034 typedef enum _lscp_event_t 00035 { 00036 LSCP_EVENT_NONE = 0x0000, 00037 LSCP_EVENT_CHANNEL_COUNT = 0x0001, 00038 LSCP_EVENT_VOICE_COUNT = 0x0002, 00039 LSCP_EVENT_STREAM_COUNT = 0x0004, 00040 LSCP_EVENT_BUFFER_FILL = 0x0008, 00041 LSCP_EVENT_CHANNEL_INFO = 0x0010, 00042 LSCP_EVENT_MISCELLANEOUS = 0x1000 00043 00044 } lscp_event_t; 00045 00046 00047 //------------------------------------------------------------------------- 00048 // Simple event helper functions. 00049 00050 const char * lscp_event_to_text ( lscp_event_t event ); 00051 lscp_event_t lscp_event_from_text ( const char *pszText ); 00052 00053 00054 #if defined(__cplusplus) 00055 } 00056 #endif 00057 00058 #endif // __LSCP_EVENT_H 00059 00060 // end of event.h