From 9fdfb5cd97fdb803246bc5fa63b962faae4c7b47 Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Mon, 29 Jul 2013 14:56:09 +0200 Subject: Hardware: Added additional information to the LMI_Chassis Added information about tag, model, product name and UUID to the LMI_Chassis. --- src/hardware/dmidecode.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/hardware/dmidecode.h') 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. */ @@ -214,6 +218,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 -- cgit