/[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 1688 by capela, Thu Jan 11 12:33:05 2007 UTC revision 1689 by schoenebeck, Thu Feb 14 17:05:51 2008 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     liblscp - LinuxSampler Control Protocol API     liblscp - LinuxSampler Control Protocol API
5     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved.
6    
7     This library is free software; you can redistribute it and/or     This library is free software; you can redistribute it and/or
8     modify it under the terms of the GNU Lesser General Public     modify it under the terms of the GNU Lesser General Public
# Line 90  const char *lscp_event_to_text ( lscp_ev Line 90  const char *lscp_event_to_text ( lscp_ev
90          case LSCP_EVENT_MISCELLANEOUS:          case LSCP_EVENT_MISCELLANEOUS:
91                  pszText = "MISCELLANEOUS";                  pszText = "MISCELLANEOUS";
92                  break;                  break;
93            case LSCP_EVENT_CHANNEL_MIDI:
94                    pszText = "CHANNEL_MIDI";
95                    break;
96          case LSCP_EVENT_NONE:          case LSCP_EVENT_NONE:
97          default:          default:
98                  break;                  break;
# Line 141  lscp_event_t lscp_event_from_text ( cons Line 144  lscp_event_t lscp_event_from_text ( cons
144                          event = LSCP_EVENT_MIDI_INSTRUMENT_INFO;                          event = LSCP_EVENT_MIDI_INSTRUMENT_INFO;
145                  else if (strcasecmp(pszText, "MISCELLANEOUS") == 0)                  else if (strcasecmp(pszText, "MISCELLANEOUS") == 0)
146                          event = LSCP_EVENT_MISCELLANEOUS;                          event = LSCP_EVENT_MISCELLANEOUS;
147                    else if (strcasecmp(pszText, "CHANNEL_MIDI") == 0)
148                            event = LSCP_EVENT_CHANNEL_MIDI;
149          }          }
150    
151          return event;          return event;

Legend:
Removed from v.1688  
changed lines
  Added in v.1689

  ViewVC Help
Powered by ViewVC