diff options
author | zilio nicolas <nicolas.zilio@kit.edu> | 2015-09-04 13:01:14 +0200 |
---|---|---|
committer | zilio nicolas <nicolas.zilio@kit.edu> | 2015-09-04 13:01:14 +0200 |
commit | 5459bc4a693e7d149e02c13c086d628aad7e0555 (patch) | |
tree | 90949dfdd2b2f35beed2744ec5a2a7289f1707c2 /pcilib/xml.c | |
parent | 57149189cb4e15ed38ee34d44450390955e56697 (diff) | |
parent | 4535ac71e075946f374aef0bb1e2997869f148fe (diff) | |
download | pcitool-5459bc4a693e7d149e02c13c086d628aad7e0555.tar.gz pcitool-5459bc4a693e7d149e02c13c086d628aad7e0555.tar.bz2 pcitool-5459bc4a693e7d149e02c13c086d628aad7e0555.tar.xz pcitool-5459bc4a693e7d149e02c13c086d628aad7e0555.zip |
almost finished regarding suren remarks
Diffstat (limited to 'pcilib/xml.c')
-rw-r--r-- | pcilib/xml.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pcilib/xml.c b/pcilib/xml.c index d4c84be..55cdf11 100644 --- a/pcilib/xml.c +++ b/pcilib/xml.c @@ -21,6 +21,10 @@ #include "bank.h" #include "register.h" #include <libxml/xmlschemastypes.h> +#include <libxml/tree.h> +#include <libxml/parser.h> +#include <libxml/xpath.h> +#include <libxml/xpathInternals.h> #include <dirent.h> #include <errno.h> @@ -450,7 +454,6 @@ void pcilib_xml_initialize_registers(pcilib_t* pci,xmlDocPtr doc){ xmlChar *type=NULL; xmlNodePtr mynode; xmlXPathContextPtr context; - int number_registers; pcilib_register_description_t *registers=NULL; pcilib_register_description_t myregister; int i,j; @@ -488,7 +491,7 @@ void pcilib_xml_initialize_registers(pcilib_t* pci,xmlDocPtr doc){ /**we arrange the register for them to be well placed for pci-l*/ pcilib_xml_arrange_registers(registers,nodesetadress->nodeNr+nodesetsubadress->nodeNr); /**we fille the pcilib_t struct*/ - pcilib_add_registers(pci,number_registers,registers); + pcilib_add_registers(pci,nodesetadress->nodeNr+nodesetsubadress->nodeNr,registers); } |