Genvid_Subscribe()¶
-
GenvidStatus
Genvid_Subscribe
(const char *id, GenvidEventSummaryCallback callback, void *userData)¶ Subscribes to the event channel whose reduce operation is named
id
.The
callback
parameter specifies the function to call when data is available.The
userData
is a generic user pointer that will be sent tocallback
when it is invoked.The call is asynchronous, it will return one of the following values :
GenvidStatus_UninitializedSDK : The Genvid library was not initialised before calling it.
GenvidStatus_InvalidParameter :
id
is null.GenvidStatus_InvalidState : The asynchronous handler was not initialised.
GenvidStatus_InvalidParameter : One of the parameters is invalid.
See Genvid_Unsubscribe().