summaryrefslogtreecommitdiffstats
path: root/pcilib/xml.h
diff options
context:
space:
mode:
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.