/[svn]/liblscp/trunk/src/event.c
ViewVC logotype

Diff of /liblscp/trunk/src/event.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 561 by capela, Fri Jun 25 18:20:57 2004 UTC revision 562 by capela, Sun May 22 11:27:56 2005 UTC
# Line 43  Line 43 
43  const char *lscp_event_to_text ( lscp_event_t event )  const char *lscp_event_to_text ( lscp_event_t event )
44  {  {
45      const char *pszText = NULL;      const char *pszText = NULL;
46        
47      switch (event) {      switch (event) {
48        case LSCP_EVENT_CHANNELS:        case LSCP_EVENT_CHANNEL_COUNT:
49          pszText = "CHANNELS";          pszText = "CHANNEL_COUNT";
50          break;          break;
51        case LSCP_EVENT_VOICE_COUNT:        case LSCP_EVENT_VOICE_COUNT:
52          pszText = "VOICE_COUNT";          pszText = "VOICE_COUNT";
# Line 84  lscp_event_t lscp_event_from_text ( cons Line 84  lscp_event_t lscp_event_from_text ( cons
84      lscp_event_t event = LSCP_EVENT_NONE;      lscp_event_t event = LSCP_EVENT_NONE;
85    
86      if (pszText) {      if (pszText) {
87          if (strcasecmp(pszText, "CHANNELS") == 0)          if (strcasecmp(pszText, "CHANNEL_COUNT") == 0)
88              event = LSCP_EVENT_CHANNELS;              event = LSCP_EVENT_CHANNEL_COUNT;
89          else if (strcasecmp(pszText, "VOICE_COUNT") == 0)          else if (strcasecmp(pszText, "VOICE_COUNT") == 0)
90              event = LSCP_EVENT_VOICE_COUNT;              event = LSCP_EVENT_VOICE_COUNT;
91          else if (strcasecmp(pszText, "STREAM_COUNT") == 0)          else if (strcasecmp(pszText, "STREAM_COUNT") == 0)

Legend:
Removed from v.561  
changed lines
  Added in v.562

  ViewVC Help
Powered by ViewVC