Possible states of a software update
#include <swu/Common.h>
typedef enum {
SWU_UPDATE_STATE_NEW = 0x00000001,
SWU_UPDATE_STATE_VERIFYING = 0x00000080,
SWU_UPDATE_STATE_VERIFIED = 0x00000100,
SWU_UPDATE_STATE_INSTALLING = 0x00000200,
SWU_UPDATE_STATE_INSTALL_COMPLETED = 0x00000400,
SWU_UPDATE_STATE_INSTALL_FAILED = 0x00000800,
SWU_UPDATE_STATE_INSTALL_CANCELLING = 0x00001000,
SWU_UPDATE_STATE_INSTALL_CANCELLED = 0x00002000,
SWU_UPDATE_STATE_INSTALL_VERIFYING = 0x00004000,
SWU_UPDATE_STATE_INSTALL_VERIFIED = 0x00008000,
SWU_UPDATE_STATE_ROLLING_BACK = 0x00010000,
SWU_UPDATE_STATE_ROLLBACK_COMPLETED = 0x00020000,
SWU_UPDATE_STATE_ROLLBACK_FAILED = 0x00040000,
SWU_UPDATE_STATE_ERROR = 0x00080000,
SWU_UPDATE_STATE_DECLINED = 0x00100000
} swu_update_state_t;
Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.
The swu_update_state_t enumeration defines the possible states of a software update. These enumeration constants are defined in a way that allows one or many constants to be used in a bitmask when defining notifications.
The swu_update_state_to_string() function returns the string representation of an swu_update_state_t code, which is helpful for logging.