include/umbra_account.h file

Account API.

Allows basic manipulation of an Umbra account and its associated data

Functions

UmbraAccount* UmbraAccountConnect(UmbraClient*, const char* apiKey)
Create account object.
void UmbraAccountDisconnect(UmbraAccount*)
Destroy account object and all of its pending requests.
void UmbraAccountPump(UmbraAccount*, int waitMs)
Update pending requests associated with the account object.
UmbraRequestHandle UmbraGetScenes(UmbraAccount*, UmbraSceneCallback callback, void* userData)
Fetches all scenes associated with the user.
UmbraRequestStatus UmbraGetRequestStatus(UmbraAccount*, UmbraRequestHandle)
Get status of a pending request.
void UmbraCancelRequest(UmbraAccount*, UmbraRequestHandle)
Cancel a pending request.

Function details

UmbraRequestHandle UmbraGetScenes(UmbraAccount*, UmbraSceneCallback callback, void* userData)

Fetches all scenes associated with the user.

Parameters
callback Callback function that is invoked when the fetch request has finished
userData User data pointer for passing custom data to the callback function
Returns Handle that identifies the request