diff options
author | zilio nicolas <nicolas.zilio@kit.edu> | 2015-07-03 12:32:07 +0200 |
---|---|---|
committer | zilio nicolas <nicolas.zilio@kit.edu> | 2015-07-03 12:32:07 +0200 |
commit | 01e63939789b7b6f195bf985dc06151cf5ee780b (patch) | |
tree | e9e504439f2bc51a809a5c65d20df71b72e18e79 /pcilib/xml.h | |
parent | f82813bfa40193aec07e013b029eec6dc092ecdd (diff) | |
download | pcitool-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.h | 14 |
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. |