Ucs_Return_t Ucs_Network_RegisterAliveCb | ( | Ucs_Inst_t * | self, |
Ucs_Network_AliveCb_t | report_fptr | ||
) |
Registers the alive message callback function.
Only one callback function can be registered at the same time.
self | The instance |
report_fptr | Callback function presenting the alive message. |
Value | Description |
---|---|
UCS_RET_SUCCESS | No error |
UCS_RET_ERR_BUFFER_OVERFLOW | A Callback function is already registered. |