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" { |
79 |
} lscp_usage_t; |
} lscp_usage_t; |
80 |
|
|
81 |
|
|
|
/** 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; |
|
|
|
|
|
|
|
82 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
83 |
// Client socket main structure. |
// Client socket main structure. |
84 |
|
|
90 |
( |
( |
91 |
struct _lscp_client_t *pClient, |
struct _lscp_client_t *pClient, |
92 |
lscp_event_t event, |
lscp_event_t event, |
93 |
const char *pchBuffer, |
const char *pchData, |
94 |
int cchBuffer, |
int cchData, |
95 |
void *pvData |
void *pvData |
96 |
); |
); |
97 |
|
|