Typedefs | |
| typedef enum wcCallback | wcCallback |
| The list of callbacks. More... | |
| typedef void(* | EmptyNotifyLibFunc) (wcHandle client) |
| Notification callback. More... | |
| typedef void(* | NotifyEventLibFunc) (wcHandle client, void *data) |
| Notification callback with an additional data. More... | |
| typedef void(* | TaskNotifyLibFunc) (wcHandle client, wcTask tsk) |
| Notification callback from the specific task. More... | |
| typedef void(* | ConnNotifyEventLibFunc) (wcHandle client, int state) |
| Notification callback that the connection status has been changed. More... | |
| typedef void(* | CStringNotifyLibFunc) (wcHandle client, const char *value) |
| Notification callback that returned a C-style string. More... | |
| typedef void(* | DataNotifyEventLibFunc) (wcHandle client, wcTask tsk, void *strm) |
| Notification callback that returned a wcCustomStream. More... | |
| typedef void(* | DataAltNotifyEventLibFunc) (wcHandle client, wcTask tsk, void *data, size_t sz) |
| Notification callback that returned a sized data buffer. More... | |
| typedef void(* | JSONStrNotifyEventLibFunc) (wcHandle client, wcTask tsk, const char *jsonStr) |
| Notification callback that task is completed and returns a C-style string with a response in JSON format. More... | |
Enumerations | |
| enum | wcCallback { wccbkInitCURL =0 , wccbkSuccessAuth , wccbkConnected , wccbkDisconnect , wccbkSIDSetted , wccbkAddLog , wccbkSynchroUpdateTask , wccbkAfterLaunchInStream , wccbkAfterLaunchOutStream , wccbkSuccessIOStream , wccbkSuccessSaveRecord , wccbkSuccessRequestRecord , wccbkSuccessUpdateRecords , wccbkSuccessUpdateDevices , wccbkSuccessUpdateStreams , wccbkSuccessUpdateMsgs , wccbkSuccessSendMsg , wccbkSuccessRequestRecordMeta , wccbkSuccessGetConfig , wccbkSuccessDeleteRecords , wccbkLast } |
| The list of callbacks. More... | |
Functions | |
| wcRCode DLLEXPORT | wcSetNotifyCallback (wcHandle client, wcCallback callbackId, NotifyEventLibFunc func) |
| Set specified notify callback for client. More... | |
| wcRCode DLLEXPORT | wcSetTaskCallback (wcHandle client, wcCallback callbackId, TaskNotifyLibFunc func) |
| Set specified task notify callback for client. More... | |
| wcRCode DLLEXPORT | wcSetConnCallback (wcHandle client, ConnNotifyEventLibFunc func) |
| Set specified connection notify callback for client. More... | |
| wcRCode DLLEXPORT | wcSetCStringCallback (wcHandle client, wcCallback callbackId, CStringNotifyLibFunc func) |
| Set specified notify callback for client to handling the C-style string values. More... | |
| wcRCode DLLEXPORT | wcSetAltDataCallback (wcHandle client, wcCallback callbackId, DataAltNotifyEventLibFunc func) |
| Set specified notify callback for client to handling the sized data values. More... | |
| wcRCode DLLEXPORT | wcSetJSONStrCallback (wcHandle client, wcCallback callbackId, JSONStrNotifyEventLibFunc func) |
| Set specified notify callback for client to process the JSON-formatted response results represented as a C-style string. More... | |
| typedef enum wcCallback wcCallback |
The list of callbacks.
| typedef void(* EmptyNotifyLibFunc) (wcHandle client) |
Notification callback.
| client | The client handle. |
| typedef void(* NotifyEventLibFunc) (wcHandle client, void *data) |
Notification callback with an additional data.
| client | The client handle. |
| data | The additional data. |
Notification callback from the specific task.
| client | The client handle. |
| tsk | The task that is the source of the notification. |
| typedef void(* ConnNotifyEventLibFunc) (wcHandle client, int state) |
Notification callback that the connection status has been changed.
| client | The client handle. |
| state | The connection state value. |
| typedef void(* CStringNotifyLibFunc) (wcHandle client, const char *value) |
Notification callback that returned a C-style string.
| client | The client handle. |
| value | The incoming C-style string value. |
Notification callback that returned a wcCustomStream.
| client | The client handle. |
| tsk | The task that is the source of the notification. |
| strm | Pointer to the incoming wcCustomStream object. |
Notification callback that returned a sized data buffer.
| client | The client handle. |
| tsk | The task that is the source of the notification. |
| data | Pointer to the incoming buffer. |
| sz | The size of the buffer |
Notification callback that task is completed and returns a C-style string with a response in JSON format.
| client | The client handle. |
| tsk | The task that is the source of the notification. |
| jsonStr | The C-style string with a response in JSON format. |
| enum wcCallback |
The list of callbacks.
| Enumerator | |
|---|---|
| wccbkInitCURL | Successful initialization of the multiCURL handle.
|
| wccbkSuccessAuth | Successful authorization. This callback is called during wcClientTasksProceed.
|
| wccbkConnected | The connection state has been changed.
|
| wccbkDisconnect | Client has been disconnected.
|
| wccbkSIDSetted | The session id has been changed.
|
| wccbkAddLog | Added new log entry.
|
| wccbkSynchroUpdateTask | The IO streaming task signals that a change has occurred. This callback is called during wcClientTasksProceed.
|
| wccbkAfterLaunchInStream | Incoming stream started.
|
| wccbkAfterLaunchOutStream | Outgoing stream started.
|
| wccbkSuccessIOStream | IO stream terminated for some reason. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessSaveRecord | The request to save the media record has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessRequestRecord | The request to get the media record has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessUpdateRecords | The request to update list of records has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessUpdateDevices | The request to update list of online devices has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessUpdateStreams | The request to update list of streaming devices has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessUpdateMsgs | The request to update list of messages has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessSendMsg | The request to send message has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessRequestRecordMeta | The request to get metadata for the media record has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessGetConfig | The request to get actual config has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkSuccessDeleteRecords | The request to delete records has been completed. The response has arrived. This callback is called during wcClientTasksProceed.
|
| wccbkLast | |
| wcRCode DLLEXPORT wcSetNotifyCallback | ( | wcHandle | client, |
| wcCallback | callbackId, | ||
| NotifyEventLibFunc | func | ||
| ) |
Set specified notify callback for client.
Acceptable values of the callback id are:
wccbkInitCURL,
wccbkDisconnect.
| client | The client handle. |
| callbackId | The specified callback id. |
| func | Pointer to callback. |
| wcRCode DLLEXPORT wcSetTaskCallback | ( | wcHandle | client, |
| wcCallback | callbackId, | ||
| TaskNotifyLibFunc | func | ||
| ) |
Set specified task notify callback for client.
Acceptable values of the callback id are:
wccbkSuccessAuth,
wccbkSynchroUpdateTask,
wccbkAfterLaunchInStream,
wccbkAfterLaunchOutStream,
wccbkSuccessIOStream,
wccbkSuccessSaveRecord.
| client | The client handle. |
| callbackId | The specified callback id. |
| func | Pointer to callback. |
| wcRCode DLLEXPORT wcSetConnCallback | ( | wcHandle | client, |
| ConnNotifyEventLibFunc | func | ||
| ) |
Set specified connection notify callback for client.
| client | The client handle. |
| func | Pointer to callback. |
| wcRCode DLLEXPORT wcSetCStringCallback | ( | wcHandle | client, |
| wcCallback | callbackId, | ||
| CStringNotifyLibFunc | func | ||
| ) |
Set specified notify callback for client to handling the C-style string values.
Acceptable values of the callback id are:
wccbkAddLog,
wccbkSIDSetted.
| client | The client handle. |
| callbackId | The specified callback id. |
| func | Pointer to callback. |
| wcRCode DLLEXPORT wcSetAltDataCallback | ( | wcHandle | client, |
| wcCallback | callbackId, | ||
| DataAltNotifyEventLibFunc | func | ||
| ) |
Set specified notify callback for client to handling the sized data values.
Acceptable value of the callback id is:
wccbkSuccessRequestRecord.
| client | The client handle. |
| callbackId | The specified callback id. |
| func | Pointer to callback. |
| wcRCode DLLEXPORT wcSetJSONStrCallback | ( | wcHandle | client, |
| wcCallback | callbackId, | ||
| JSONStrNotifyEventLibFunc | func | ||
| ) |
Set specified notify callback for client to process the JSON-formatted response results represented as a C-style string.
Acceptable values of the callback id are:
wccbkSuccessUpdateRecords,
wccbkSuccessUpdateDevices,
wccbkSuccessUpdateStreams,
wccbkSuccessUpdateMsgs,
wccbkSuccessRequestRecordMeta,
wccbkSuccessGetConfig,
wccbkSuccessDeleteRecords.
| client | The client handle. |
| callbackId | The specified callback id. |
| func | Pointer to callback. |