summaryrefslogtreecommitdiffstats
path: root/pcilib/xml.h
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-07-03 12:32:07 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-07-03 12:32:07 +0200
commit01e63939789b7b6f195bf985dc06151cf5ee780b (patch)
treee9e504439f2bc51a809a5c65d20df71b72e18e79 /pcilib/xml.h
parentf82813bfa40193aec07e013b029eec6dc092ecdd (diff)
downloadpcitool-01e63939789b7b6f195bf985dc06151cf5ee780b.tar.gz
pcitool-01e63939789b7b6f195bf985dc06151cf5ee780b.tar.bz2
pcitool-01e63939789b7b6f195bf985dc06151cf5ee780b.tar.xz
pcitool-01e63939789b7b6f195bf985dc06151cf5ee780b.zip
modified version to include future functions
Diffstat (limited to 'pcilib/xml.h')
-rw-r--r--pcilib/xml.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/pcilib/xml.h b/pcilib/xml.h
index da540b5..f5833aa 100644
--- a/pcilib/xml.h
+++ b/pcilib/xml.h
@@ -74,15 +74,17 @@
#define BANK_NAME_PATH ((xmlChar*)"/model/banks/bank/bank_description/name") /**< path to name of banks.*/
#define BANK_DESCRIPTION_PATH ((xmlChar*)"/model/banks/bank/bank_description/description") /**<path to description of banks.*/
-#define UNIT_PATH ((char*)"/units/unit[@name=\"%s\"]/convert_unit[@value=\"%s\"]") /**< path to get possible units for a view in units xml file.*/
/**
- * this type is used to save enough information in the pcilib_watch_to_read_with_enum function to get a good output in human readable form.
+ * this path get the units in the units xml file
*/
-typedef struct{
- int val; /**< value of a register corresponding to an enum value.*/
- char* name; /**< name of the corresponding command to val.*/
-}info_enum;
+#define BASE_UNIT_PATH ((char*)"/units/unit")
+
+/**
+ * this path permits to get the possible units one given unit can be converted into in the xml.
+ */
+#define TRANSFORM_UNIT_PATH ((char*)"/units/unit[@name=\"%s\"]/convert_unit")
+
/**
* this function takes a string and will create an abtract syntax tree from the xml file represented by the string.