Registers your application with the cluster SDK.
#include <ncssdk.h>
NCS_RETURN NCS_Register (
UINT32 (*Callback) (NCS_MAPI,
NCS_RESOURCE *,
void * cxt),
UINT8 *Name,
NCS_EPOCH_CHANGE_CALLBACK EpochCallback,
void *reserved1,
void *reserved2,
NCS_HANDLE *ncssdkHandle);
(IN) Points to the resource control callback function.
(IN) Points to the name of your application.
(IN) Specifies the callback for node joins/leaves.
(IN) Reserved.
(IN) REserved.
(OUT) Points to the NCS supplied handle.
Call this function first. If you do not use the EpochCallback, just provide a resource event callback. The handle is returned in NCS_Handle. If you do not specify resource event callback, pass in NULL.The Name parameter is used only for the epoch callback, not for the resource callback.