Many public functions returns ZEBRA_RES rather than int to avoid
[idzebra-moved-to-github.git] / include / zebra_xpath.h
index d09bf16..20a876a 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef ZEBRA_XPATH_H
 #define ZEBRA_XPATH_H
 
+#include <yaz/nmem.h>
+
 #define XPATH_STEP_COUNT 10
 struct xpath_predicate {
     int which;
@@ -27,9 +29,11 @@ struct xpath_location_step {
     struct xpath_predicate *predicate;
 };
 
-int parse_xpath_str(const char *xpath_string,
-                   struct xpath_location_step *xpath, NMEM mem);
+int zebra_parse_xpath_str(const char *xpath_string,
+                          struct xpath_location_step *xpath,
+                          int max, NMEM mem);
 
 void dump_xp_steps (struct xpath_location_step *xpath, int no);
 
+
 #endif