#include "legato.h"
Go to the source code of this file.
◆ IFGEN_LE_UPDATECTRL_PROTOCOL_ID
#define IFGEN_LE_UPDATECTRL_PROTOCOL_ID "2068715d5da737c096cc7146ce5f1df6" |
◆ IFGEN_LE_UPDATECTRL_MSG_SIZE
#define IFGEN_LE_UPDATECTRL_MSG_SIZE 12 |
◆ le_updateCtrl_SystemState_t
State of the system.
Enumerator |
---|
LE_UPDATECTRL_SYSTEMSTATE_GOOD | "good"
|
LE_UPDATECTRL_SYSTEMSTATE_BAD | "bad"
|
LE_UPDATECTRL_SYSTEMSTATE_PROBATION | "tried N" or untried.
|
◆ ifgen_le_updateCtrl_HasLocalBinding()
LE_SHARED bool ifgen_le_updateCtrl_HasLocalBinding |
( |
void |
| ) |
|
Get if this client bound locally.
◆ ifgen_le_updateCtrl_InitCommonData()
LE_SHARED void ifgen_le_updateCtrl_InitCommonData |
( |
void |
| ) |
|
Init data that is common across all threads
◆ ifgen_le_updateCtrl_CleanupCommonData()
Cleanup the data of a session
◆ ifgen_le_updateCtrl_OpenSession()
Perform common initialization and open a session
◆ ifgen_le_updateCtrl_Defer()
Prevent all updates (and roll-backs) until further notice.
◆ ifgen_le_updateCtrl_Allow()
Allow updates to go ahead.
◆ ifgen_le_updateCtrl_LockProbation()
Prevent the probation period from ending.
- Returns
- false if lock failed (for example if not in a probation period).
◆ ifgen_le_updateCtrl_UnlockProbation()
Cancels a call to LockProbation(), allow the probation period to end.
- Note
- Must match previous successful call to LockProbation().
◆ ifgen_le_updateCtrl_MarkGood()
Marks the system "good", ending the probation period.
- Returns
- LE_OK The system was marked Good
- LE_BUSY Someone holds a probation lock
- LE_DUPLICATE Probation has expired - the system has already been marked
- Parameters
-
[in] | force | True to set system Good even if someone holds a probation lock |
◆ ifgen_le_updateCtrl_FailProbation()
Marks the system "bad" and triggers a roll-back to a "good" system.
- Note
- Ignored if the probation period has already ended. Also, the roll-back may be delayed if someone is deferring updates using le_updateCtrl_Defer().
◆ ifgen_le_updateCtrl_GetSystemState()
Get the current system state.
- Note
- Can only be called if updates have been deferred or if a probation lock is held. Otherwise the system state could change between the time this function is called and when the return value is checked.