74 |
// Transaction call timeout (msecs). |
// Transaction call timeout (msecs). |
75 |
int iTimeout; |
int iTimeout; |
76 |
lscp_mutex_t mutex; |
lscp_mutex_t mutex; |
77 |
|
lscp_cond_t cond; |
78 |
}; |
}; |
79 |
|
|
80 |
|
|
81 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
82 |
// Local client request executive. |
// Local client request executive. |
83 |
|
|
84 |
|
lscp_status_t lscp_client_recv (lscp_client_t *pClient, char *pchBuffer, int *pcchBuffer, int iTimeout); |
85 |
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); |
86 |
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); |
87 |
|
|
91 |
char * lscp_strtok (char *pchBuffer, const char *pszSeps, char **ppch); |
char * lscp_strtok (char *pchBuffer, const char *pszSeps, char **ppch); |
92 |
char * lscp_ltrim (char *psz); |
char * lscp_ltrim (char *psz); |
93 |
char * lscp_unquote (char **ppsz, int dup); |
char * lscp_unquote (char **ppsz, int dup); |
94 |
|
void lscp_unquote_dup (char **ppszDst, char **ppszSrc); |
95 |
|
|
96 |
char ** lscp_szsplit_create (const char *pszCsv, const char *pszSeps); |
char ** lscp_szsplit_create (const char *pszCsv, const char *pszSeps); |
97 |
void lscp_szsplit_destroy (char **ppszSplit); |
void lscp_szsplit_destroy (char **ppszSplit); |
126 |
// Engine struct helper functions. |
// Engine struct helper functions. |
127 |
|
|
128 |
void lscp_engine_info_init (lscp_engine_info_t *pEngineInfo); |
void lscp_engine_info_init (lscp_engine_info_t *pEngineInfo); |
129 |
|
void lscp_engine_info_free (lscp_engine_info_t *pEngineInfo); |
130 |
void lscp_engine_info_reset (lscp_engine_info_t *pEngineInfo); |
void lscp_engine_info_reset (lscp_engine_info_t *pEngineInfo); |
131 |
|
|
132 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
133 |
// Channel struct helper functions. |
// Channel struct helper functions. |
134 |
|
|
135 |
void lscp_channel_info_init (lscp_channel_info_t *pChannelInfo); |
void lscp_channel_info_init (lscp_channel_info_t *pChannelInfo); |
136 |
|
void lscp_channel_info_free (lscp_channel_info_t *pChannelInfo); |
137 |
void lscp_channel_info_reset (lscp_channel_info_t *pChannelInfo); |
void lscp_channel_info_reset (lscp_channel_info_t *pChannelInfo); |
138 |
|
|
139 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
140 |
// Driver struct helper functions. |
// Driver struct helper functions. |
141 |
|
|
142 |
void lscp_driver_info_init (lscp_driver_info_t *pDriverInfo); |
void lscp_driver_info_init (lscp_driver_info_t *pDriverInfo); |
143 |
|
void lscp_driver_info_free (lscp_driver_info_t *pDriverInfo); |
144 |
void lscp_driver_info_reset (lscp_driver_info_t *pDriverInfo); |
void lscp_driver_info_reset (lscp_driver_info_t *pDriverInfo); |
145 |
|
|
146 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
147 |
// Device struct helper functions. |
// Device struct helper functions. |
148 |
|
|
149 |
void lscp_device_info_init (lscp_device_info_t *pDeviceInfo); |
void lscp_device_info_init (lscp_device_info_t *pDeviceInfo); |
150 |
|
void lscp_device_info_free (lscp_device_info_t *pDeviceInfo); |
151 |
void lscp_device_info_reset (lscp_device_info_t *pDeviceInfo); |
void lscp_device_info_reset (lscp_device_info_t *pDeviceInfo); |
152 |
|
|
153 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
154 |
// Device channel/port struct helper functions. |
// Device channel/port struct helper functions. |
155 |
|
|
156 |
void lscp_device_port_info_init (lscp_device_port_info_t *pDevicePortInfo); |
void lscp_device_port_info_init (lscp_device_port_info_t *pDevicePortInfo); |
157 |
|
void lscp_device_port_info_free (lscp_device_port_info_t *pDevicePortInfo); |
158 |
void lscp_device_port_info_reset (lscp_device_port_info_t *pDevicePortInfo); |
void lscp_device_port_info_reset (lscp_device_port_info_t *pDevicePortInfo); |
159 |
|
|
160 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
161 |
// Parameter struct helper functions. |
// Parameter struct helper functions. |
162 |
|
|
163 |
void lscp_param_info_init (lscp_param_info_t *pParamInfo); |
void lscp_param_info_init (lscp_param_info_t *pParamInfo); |
164 |
|
void lscp_param_info_free (lscp_param_info_t *pParamInfo); |
165 |
void lscp_param_info_reset (lscp_param_info_t *pParamInfo); |
void lscp_param_info_reset (lscp_param_info_t *pParamInfo); |
166 |
|
|
167 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |