/[svn]/liblscp/trunk/lscp/client.h
ViewVC logotype

Diff of /liblscp/trunk/lscp/client.h

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

revision 144 by capela, Thu Jun 24 18:25:11 2004 UTC revision 253 by capela, Mon Sep 27 14:40:08 2004 UTC
# Line 24  Line 24 
24  #define __LSCP_CLIENT_H  #define __LSCP_CLIENT_H
25    
26  #include "lscp/socket.h"  #include "lscp/socket.h"
27    #include "lscp/event.h"
28    
29  #if defined(__cplusplus)  #if defined(__cplusplus)
30  extern "C" {  extern "C" {
31  #endif  #endif
32    
33    //-------------------------------------------------------------------------
34    // MIDI channel omni mode.
35    
36    #define LSCP_MIDI_CHANNEL_ALL   (-1)
37    
38    
39  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
40  // Client data structures.  // Client data structures.
# Line 78  typedef enum _lscp_usage_t Line 84  typedef enum _lscp_usage_t
84  } lscp_usage_t;  } lscp_usage_t;
85    
86    
 /** Subscribable event notification bit-wise flags. */  
 typedef enum _lscp_event_t  
 {  
     LSCP_EVENT_NONE             = 0x0000,  
     LSCP_EVENT_CHANNELS         = 0x0001,  
     LSCP_EVENT_VOICE_COUNT      = 0x0002,  
     LSCP_EVENT_STREAM_COUNT     = 0x0004,  
     LSCP_EVENT_BUFFER_FILL      = 0x0008,  
     LSCP_EVENT_CHANNEL_INFO     = 0x0010,  
     LSCP_EVENT_MISCELLANEOUS    = 0x1000  
   
 } lscp_event_t;  
   
   
87  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
88  // Client socket main structure.  // Client socket main structure.
89    
# Line 103  typedef lscp_status_t (*lscp_client_proc Line 95  typedef lscp_status_t (*lscp_client_proc
95  (  (
96      struct _lscp_client_t *pClient,      struct _lscp_client_t *pClient,
97      lscp_event_t event,      lscp_event_t event,
98      const char *pchBuffer,      const char *pchData,
99      int cchBuffer,      int cchData,
100      void *pvData      void *pvData
101  );  );
102    
# Line 138  int                     lscp_client_get_ Line 130  int                     lscp_client_get_
130  lscp_status_t           lscp_client_subscribe           (lscp_client_t *pClient, lscp_event_t events);  lscp_status_t           lscp_client_subscribe           (lscp_client_t *pClient, lscp_event_t events);
131  lscp_status_t           lscp_client_unsubscribe         (lscp_client_t *pClient, lscp_event_t events);  lscp_status_t           lscp_client_unsubscribe         (lscp_client_t *pClient, lscp_event_t events);
132    
133  lscp_event_t            lscp_client_events              (lscp_client_t *pClient);  lscp_event_t            lscp_client_get_events          (lscp_client_t *pClient);
134    
135  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
136  // Client command protocol functions.  // Client command protocol functions.
# Line 157  lscp_channel_info_t *   lscp_get_channel Line 149  lscp_channel_info_t *   lscp_get_channel
149    
150  int                     lscp_get_channel_voice_count    (lscp_client_t *pClient, int iSamplerChannel);  int                     lscp_get_channel_voice_count    (lscp_client_t *pClient, int iSamplerChannel);
151  int                     lscp_get_channel_stream_count   (lscp_client_t *pClient, int iSamplerChannel);  int                     lscp_get_channel_stream_count   (lscp_client_t *pClient, int iSamplerChannel);
152    int                     lscp_get_channel_stream_usage   (lscp_client_t *pClient, int iSamplerChannel);
153    
154  lscp_buffer_fill_t *    lscp_get_channel_buffer_fill    (lscp_client_t *pClient, lscp_usage_t iUsageType, int iSamplerChannel);  lscp_buffer_fill_t *    lscp_get_channel_buffer_fill    (lscp_client_t *pClient, lscp_usage_t iUsageType, int iSamplerChannel);
155    
# Line 172  lscp_status_t           lscp_set_channel Line 165  lscp_status_t           lscp_set_channel
165    
166  lscp_status_t           lscp_reset_channel              (lscp_client_t *pClient, int iSamplerChannel);  lscp_status_t           lscp_reset_channel              (lscp_client_t *pClient, int iSamplerChannel);
167    
168    lscp_status_t           lscp_reset_sampler              (lscp_client_t *pClient);
169    
170  #if defined(__cplusplus)  #if defined(__cplusplus)
171  }  }

Legend:
Removed from v.144  
changed lines
  Added in v.253

  ViewVC Help
Powered by ViewVC