Funzione SysEvent_Info_GetUpdateDataSysEvent_Info_GetUpdateData Function
Intestazione: #include <applibs/sysevent.h>Header: #include <applibs/sysevent.h>
Recupera le informazioni sugli aggiornamenti delle applicazioni o del sistema operativo.Retrieves application or OS update information.
Il parametro info deve essere recuperato da una chiamata a SysEvent_EventsCallback quando il parametro event
è impostato su SysEvent_Events_Update
.The info parameter must be retrieved from a SysEvent_EventsCallback call when the event
parameter is set to SysEvent_Events_Update
.
int SysEvent_Info_GetUpdateData(const SysEvent_Info *info, SysEvent_Info_UpdateData *update_info);
ParametriParameters
info
Un puntatore allo struct SysEvent_Info contenente le informazioni sull'evento di sistema recuperate dalla chiamata a SysEvent_EventsCallback.info
A pointer to the SysEvent_Info struct that contains the system event information retrieved from the SysEvent_EventsCallback call.update_info
Un puntatore alla struttura SysEvent_Info_UpdateData che riceve le informazioni sugli aggiornamenti software.update_info
A pointer to the SysEvent_Info_UpdateData structure that receives the software update information.
ErrorsErrors
Restituisce-1 se viene rilevato un errore e imposta sul errno
valore di erroreReturns -1 if an error is encountered and sets errno
to the error value
- EFAULT: Uno o entrambi i parametri sono NULL.EFAULT: One or both of the parameters is NULL.
- EINVAL: Il parametro
info
non proviene da un evento di aggiornamento.EINVAL: Theinfo
parameter is not from an update event.
errno
È possibile specificare anche qualsiasi altro, ma lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified, but 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
viene impostato sul valore di errore.Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Il manifesto dell'applicazione deve includere la funzionalità SystemEventNotifications.The application manifest must include the SystemEventNotifications capability.