Genvid_Subscribe()

GenvidStatus Genvid_Subscribe(const char *id, GenvidEventSummaryCallback callback, void *userData)

Subscribes to the event channel with the reduce-operation name id.

The callback parameter specifies the function to call when data is available.

The userData is a generic user pointer that is sent to callback when invoked.

The call is asynchronous.

It returns one of the following values:

GenvidStatus_UninitializedSDK: The Genvid library was not initialized before calling it.

GenvidStatus_InvalidParameter: id is null.

GenvidStatus_InvalidState: The asynchronous handler was not initialized.

GenvidStatus_InvalidParameter: One of the parameters is invalid.

See Genvid_Unsubscribe() for more information.