swu_target_sw_information_t

Stores information about an UpdateTarget

Synopsis:

typedef struct {
    size_t size;
    char vendor_id[SWU_UPDATE_TARGET_VENDOR_ID_LEN + 1];
    char hardware_id[SWU_UPDATE_TARGET_HARDWARE_ID_LEN + 1];
    char serial_number[SWU_UPDATE_TARGET_SERIAL_NUM_LEN + 1];
    char bom_version[SWU_UPDATE_TARGET_BOM_VERSION_LEN + 1];
} swu_target_sw_information_t;

Data:

size_t size
Size of the structure. This field should be set by calling sizeof(swu_target_sw_information_t) before using the structure in an SWU library API call.
char vendor_id[SWU_UPDATE_TARGET_VENDOR_ID_LEN + 1]
Vendor ID, used with the value in hardware_id to uniquely identify the UpdateTarget when it's matched with an Update.
char hardware_id[SWU_UPDATE_TARGET_HARDWARE_ID_LEN + 1]
Hardware ID, used with the value in vendor_id to uniquely identify the UpdateTarget when it's matched with an Update.
char serial_number[SWU_UPDATE_TARGET_SERIAL_NUM_LEN + 1]
Serial number of the UpdateTarget. The library integrator can decide how to use this field.
char bom_version[SWU_UPDATE_TARGET_BOM_VERSION_LEN + 1]
Version of the UpdateTarget. The library integrator can decide how to use this field.

Library:

libswu-core

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

Description:

The swu_target_sw_information_t structure stores information describing the software update contained in an UpdateTarget. The vendor_id and hardware_id fields identify the UpdateTarget that an Update is meant for, so the combination of values in these fields must be unique among all UpdateTarget objects registered with the library.