summaryrefslogtreecommitdiffstats
path: root/src/hardware/dmidecode.h
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-07-29 14:56:09 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-07-29 14:56:09 +0200
commit9fdfb5cd97fdb803246bc5fa63b962faae4c7b47 (patch)
treea413700bd2d6fda8e27b3f9a1aec78e9cb43ceff /src/hardware/dmidecode.h
parent6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec (diff)
downloadopenlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.tar.gz
openlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.tar.xz
openlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.zip
Hardware: Added additional information to the LMI_Chassis
Added information about tag, model, product name and UUID to the LMI_Chassis.
Diffstat (limited to 'src/hardware/dmidecode.h')
-rw-r--r--src/hardware/dmidecode.h12
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