X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=include%2Fzebra_xpath.h;h=3815d6fd177a41b347873020fa7e426053fbeb4b;hp=d09bf16a151c0031924358328a4981a58512af5c;hb=96e4c5479e111511f5df3531b6648931251b9e5d;hpb=26a5a4b96b90361859cf856d6c41852b03ca2f84 diff --git a/include/zebra_xpath.h b/include/zebra_xpath.h index d09bf16..3815d6f 100644 --- a/include/zebra_xpath.h +++ b/include/zebra_xpath.h @@ -1,8 +1,27 @@ -/* Moved from zrpn.c -pop */ +/* This file is part of the Zebra server. + Copyright (C) 1994-2011 Index Data + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ #ifndef ZEBRA_XPATH_H #define ZEBRA_XPATH_H +#include + #define XPATH_STEP_COUNT 10 struct xpath_predicate { int which; @@ -27,9 +46,20 @@ 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 +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +