Definitions in Common.h

Preprocessor macro definitions in Common.h

Definitions:

#define SWU_UPDATE_TARGET_VENDOR_ID_LEN 100
Maximum length of the vendor ID on an UpdateTarget (not including the null-terminator).
#define SWU_UPDATE_TARGET_HARDWARE_ID_LEN 100
Maximum length of the hardware ID on an UpdateTarget (not including the null-terminator).
#define SWU_UPDATE_TARGET_SERIAL_NUM_LEN 100
Maximum length of a serial number on an UpdateTarget (not including the null-terminator).
#define SWU_UPDATE_TARGET_BOM_VERSION_LEN 100
Maximum length of the software version of an UpdateTarget (not including the null-terminator).
#define SWU_INVALID_TARGET_ID ((swu_target_id_t)0)
Represents an invalid value for an swu_target_id_t.
#define SWU_INVALID_GRACE_PERIOD ((swu_timestamp_t) INT64_MAX)
Represents an invalid grace period value.
#define SWU_INVALID_MANIFEST_ID ((swu_manifest_id_t)0)
Represents an invalid manifest ID.
#define SWU_UPDATE_ALL_STATES \
        (SWU_UPDATE_STATE_NEW | \
         SWU_UPDATE_STATE_VERIFYING | \
         SWU_UPDATE_STATE_VERIFIED | \
         SWU_UPDATE_STATE_INSTALLING | \
         SWU_UPDATE_STATE_INSTALL_COMPLETED | \
         SWU_UPDATE_STATE_INSTALL_FAILED | \
         SWU_UPDATE_STATE_INSTALL_CANCELLING | \
         SWU_UPDATE_STATE_INSTALL_CANCELLED | \
         SWU_UPDATE_STATE_INSTALL_VERIFYING | \
         SWU_UPDATE_STATE_INSTALL_VERIFIED | \
         SWU_UPDATE_STATE_ROLLING_BACK | \ 
         SWU_UPDATE_STATE_ROLLBACK_COMPLETED | \
         SWU_UPDATE_STATE_ROLLBACK_FAILED | \
         SWU_UPDATE_STATE_ERROR | \
         SWU_UPDATE_STATE_DECLINED)
Represents all possible Update states. This constant is useful for setting a notification for all states.

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.