diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-10-19 07:16:40 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-10-19 07:16:40 +0200 |
commit | 87ef1499bfcaa0ea2a58cb6d3c327162507f6ac8 (patch) | |
tree | e92aec0ece03cafac6aefe362360c39593bcbc34 /pcilib/xml.c | |
parent | 8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf (diff) | |
download | pcitool-87ef1499bfcaa0ea2a58cb6d3c327162507f6ac8.tar.gz pcitool-87ef1499bfcaa0ea2a58cb6d3c327162507f6ac8.tar.bz2 pcitool-87ef1499bfcaa0ea2a58cb6d3c327162507f6ac8.tar.xz pcitool-87ef1499bfcaa0ea2a58cb6d3c327162507f6ac8.zip |
Add optional description in the value name-aliases
Diffstat (limited to 'pcilib/xml.c')
-rw-r--r-- | pcilib/xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pcilib/xml.c b/pcilib/xml.c index b9deed2..b022fd8 100644 --- a/pcilib/xml.c +++ b/pcilib/xml.c @@ -578,6 +578,8 @@ static int pcilib_xml_parse_value_name(pcilib_t *ctx, xmlXPathContextPtr xpath, if (!strcasecmp(name, "name")) { desc->name = value; + } else if (!strcasecmp(name, "description")) { + desc->description = value; } else if (!strcasecmp(name, "value")) { val = strtol(value, &endptr, 0); if ((strlen(endptr) > 0)) { |