Networking_TimeSync_GetEnabled Function

Header: #include <applibs/networking.h>

Indicates whether the time-sync service is enabled.

int Networking_TimeSync_GetEnabled(bool *outIsEnabled);

Parameters

  • outIsEnabled A pointer to a Boolean value that receives the state of the time-sync service. The value is set to true if the time-sync service is enabled, otherwise false.

Errors

Returns -1 if an error is encountered and sets errno to the error value.

  • EFAULT: the outIsEnabled parameter provided is NULL.

  • EAGAIN: the networking stack isn't ready.

Any other errno may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.

Return value

Returns 0 for success, or -1 for failure, in which case errno will be set to the error value.

Concepts and samples