Added header yaz/xmltypes.h which include libxml2' node definitions
[yaz-moved-to-github.git] / include / yaz / marcdisp.h
index dab1946..97fad09 100644 (file)
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-/* $Id: marcdisp.h,v 1.19 2006-10-09 21:02:41 adam Exp $ */
+/* $Id: marcdisp.h,v 1.21 2006-12-13 11:25:17 adam Exp $ */
 
 /**
  * \file marcdisp.h
@@ -38,6 +38,8 @@
 #include <stdio.h>
 #include <yaz/wrbuf.h>
 
+#include <yaz/xmltypes.h>
+
 YAZ_BEGIN_CDECL
 
 /** \brief a yaz_marc_t handle (private content) */
@@ -64,6 +66,8 @@ YAZ_EXPORT void yaz_marc_xml(yaz_marc_t mt, int xmlmode);
 #define YAZ_MARC_ISO2709   4
 /** \brief Output format: MarcXchange */
 #define YAZ_MARC_XCHANGE   5
+/** \brief Output format: check only (no marc output) */
+#define YAZ_MARC_CHECK  6
 
 /** \brief supply iconv handle for character set conversion .. */
 YAZ_EXPORT void yaz_marc_iconv(yaz_marc_t mt, yaz_iconv_t cd);
@@ -145,11 +149,11 @@ YAZ_EXPORT int yaz_marc_read_iso2709(yaz_marc_t mt,
 
 /** \brief parses MARCXML/MarcXchange record from xmlNode pointer 
     \param mt handle
-    \param xmlnode is a pointer to root xmlNode pointer 
+    \param ptr is a pointer to root xml node 
 
     Returns 0=OK, -1=ERROR
 */
-YAZ_EXPORT int yaz_marc_read_xml(yaz_marc_t mt, const void *xmlnode);
+YAZ_EXPORT int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr);
 
 /** \brief writes record in line format
     \param mt handle
@@ -165,7 +169,6 @@ YAZ_EXPORT int yaz_marc_write_line(yaz_marc_t mt, WRBUF wrbuf);
 
     Sets leader[9]='a' . Returns 0=OK, -1=ERROR . 
 */
-
 YAZ_EXPORT int yaz_marc_write_marcxml(yaz_marc_t mt, WRBUF wrbuf);
 
 /** \brief writes record in MarcXchange XML