Funzione Networking_TimeSync_GetEnabledNetworking_TimeSync_GetEnabled Function
Intestazione: #include <applibs/networking.h>Header: #include <applibs/networking.h>
Indica se il servizio di sincronizzazione dell'ora è abilitato.Indicates whether the time-sync service is enabled.
int Networking_TimeSync_GetEnabled(bool *outIsEnabled);
ParametriParameters
outIsEnabled
Puntatore a un valore booleano che riceve lo stato del servizio di sincronizzazione dell'ora.outIsEnabled
A pointer to a Boolean value that receives the state of the time-sync service. Il valore è impostato su true se il servizio di sincronizzazione dell'ora è abilitato. In caso contrario, su false.The value is set to true if the time-sync service is enabled, otherwise false.
ErrorsErrors
Restituisce-1 se viene rilevato un errore e imposta sul errno
valore di errore.Returns -1 if an error is encountered and sets errno
to the error value.
PREDEFINITO: il
outIsEnabled
parametro specificato è null.EFAULT: theoutIsEnabled
parameter provided is NULL.EAGAIN: lo stack di rete non è pronto.EAGAIN: the networking stack isn't ready.
errno
È possibile specificare anche qualsiasi altro tipo di errore. tali errori non sono deterministici e lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Valore restituitoReturn value
Restituisce 0 per l'esito positivo o-1 per l'esito negativo, nel qual caso errno
verrà impostato sul valore di errore.Returns 0 for success, or -1 for failure, in which case errno
will be set to the error value.