diff options
Diffstat (limited to 'src/hardware/dmidecode.h')
-rw-r--r-- | src/hardware/dmidecode.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hardware/dmidecode.h b/src/hardware/dmidecode.h index a29d90d..d139f38 100644 --- a/src/hardware/dmidecode.h +++ b/src/hardware/dmidecode.h @@ -108,6 +108,10 @@ typedef struct _DmiChassis { char *version; /* Chassis Version */ short has_lock; /* Has chassis lock? 0 or 1 */ unsigned power_cords; /* Number of Power Cords */ + char *asset_tag; /* Asset Tag */ + char *model; /* Model (Version field in dmidecode) */ + char *product_name; /* Product Name */ + char *uuid; /* UUID */ } DmiChassis; /* Baseboard from dmidecode. */ @@ -215,6 +219,14 @@ short dmi_get_chassis(DmiChassis *chassis); void dmi_free_chassis(DmiChassis *chassis); /* + * Get best available chassis tag from given chassis. Return value should not + * be freed. + * @param chassis + * @return tag + */ +char *dmi_get_chassis_tag(DmiChassis *chassis); + +/* * Get baseboard structure according to the dmidecode program. * @param baseboard structure, this function will allocate * necessary memory, but caller is responsible for freeing it |