Fix compilation on systems where Libxml2 does not exist
[yaz-moved-to-github.git] / include / yaz / nfaxml.h
index 582f9e7..8ddb0a2 100644 (file)
@@ -1,6 +1,6 @@
 /*  Copyright (C) 2006, Index Data ApS
  *  See the file LICENSE for details.
- *  $Id: nfaxml.h,v 1.1 2006-07-04 12:59:56 heikki Exp $
+ *  $Id: nfaxml.h,v 1.3 2006-07-06 07:45:07 adam Exp $
  */
 
 /**
 #include <yaz/log.h>
 #include <yaz/nfa.h>
 
-#if HAVE_XML2
-#include <libxml/parser.h>
-
 YAZ_BEGIN_CDECL
 
-
 /** \brief Parse the NFA from a XML document 
  * 
  * \param doc the xml tree to parse
@@ -59,7 +54,7 @@ YAZ_BEGIN_CDECL
  * call xmlGetLastError() to get the details of the error. 
  *
  */
-yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc);
+yaz_nfa *yaz_nfa_parse_xml_doc(void *xmlDocPtr);
 
 
 /** \brief Parse the NFA from a file 
@@ -76,13 +71,11 @@ yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc);
  * care.
  *
  */
-yaz_nfa *yaz_nfa_parse_xml_file(char *filepath);
+yaz_nfa *yaz_nfa_parse_xml_file(const char *filepath);
 
 
 YAZ_END_CDECL
 
-#endif /* HAVE_XML2 */
-
 #endif /* YAZ_NFA_XML_H */
 
 /*