2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2005, 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 |
63 |
lscp_device_port_info_t midi_port_info; |
lscp_device_port_info_t midi_port_info; |
64 |
lscp_param_info_t audio_channel_param_info; |
lscp_param_info_t audio_channel_param_info; |
65 |
lscp_param_info_t midi_port_param_info; |
lscp_param_info_t midi_port_param_info; |
66 |
|
lscp_server_info_t server_info; |
67 |
lscp_engine_info_t engine_info; |
lscp_engine_info_t engine_info; |
68 |
lscp_channel_info_t channel_info; |
lscp_channel_info_t channel_info; |
69 |
// Result and error status. |
// Result and error status. |
76 |
int iTimeout; |
int iTimeout; |
77 |
lscp_mutex_t mutex; |
lscp_mutex_t mutex; |
78 |
lscp_cond_t cond; |
lscp_cond_t cond; |
79 |
|
// Flag last transaction timedout. |
80 |
|
int iTimeoutCount; |
81 |
}; |
}; |
82 |
|
|
83 |
|
|
84 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
85 |
// Local client request executive. |
// Local client request executive. |
86 |
|
|
87 |
|
lscp_status_t lscp_client_recv (lscp_client_t *pClient, char *pchBuffer, int *pcchBuffer, int iTimeout); |
88 |
lscp_status_t lscp_client_call (lscp_client_t *pClient, const char *pszQuery); |
lscp_status_t lscp_client_call (lscp_client_t *pClient, const char *pszQuery); |
89 |
void lscp_client_set_result (lscp_client_t *pClient, char *pszResult, int iErrno); |
void lscp_client_set_result (lscp_client_t *pClient, char *pszResult, int iErrno); |
90 |
|
|
126 |
#endif |
#endif |
127 |
|
|
128 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
129 |
|
// Server struct helper functions. |
130 |
|
|
131 |
|
void lscp_server_info_init (lscp_server_info_t *pServerInfo); |
132 |
|
void lscp_server_info_free (lscp_server_info_t *pServerInfo); |
133 |
|
void lscp_server_info_reset (lscp_server_info_t *pServerInfo); |
134 |
|
|
135 |
|
//------------------------------------------------------------------------- |
136 |
// Engine struct helper functions. |
// Engine struct helper functions. |
137 |
|
|
138 |
void lscp_engine_info_init (lscp_engine_info_t *pEngineInfo); |
void lscp_engine_info_init (lscp_engine_info_t *pEngineInfo); |