Doxyfile file description. Indentation. No change of code.
[yaz-moved-to-github.git] / include / yaz / soap.h
index 9c60462..d94a60a 100644 (file)
@@ -1,8 +1,12 @@
 /*
- * Copyright (c) 2002-2003, Index Data.
+ * Copyright (c) 2002-2004, Index Data.
  * See the file LICENSE for details.
  *
- * $Id: soap.h,v 1.1 2003-02-12 15:06:43 adam Exp $
+ * $Id: soap.h,v 1.8 2004-10-15 00:18:59 adam Exp $
+ */
+/**
+ * \file soap.h
+ * \brief Header for SOAP
  */
 
 #ifndef YAZ_SOAP_H
 
 #include <yaz/odr.h>
 
-#if HAVE_XSLT
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#endif
+YAZ_BEGIN_CDECL
 
 typedef struct {
     char *fault_code;
@@ -40,15 +41,30 @@ typedef struct {
     const char *ns;
 } Z_SOAP;
 
+typedef int (*Z_SOAP_fun)(ODR o, void * ptr, void **handler_data,
+                        void *client_data, const char *ns);
 typedef struct {
     char *ns;
     void *client_data;
-    int (*f)(ODR o, xmlNodePtr ptr, void **handler_data,
-             void *client_data, const char *ns);
+    Z_SOAP_fun f;
 } Z_SOAP_Handler;
 
 YAZ_EXPORT int z_soap_codec(ODR o, Z_SOAP **pp, 
                             char **content_buf, int *content_len,
                             Z_SOAP_Handler *handlers);
+YAZ_EXPORT int z_soap_codec_enc(ODR o, Z_SOAP **pp, 
+                               char **content_buf, int *content_len,
+                               Z_SOAP_Handler *handlers,
+                               const char *encoding);
+YAZ_EXPORT int z_soap_codec_enc_xsl(ODR o, Z_SOAP **pp, 
+                                   char **content_buf, int *content_len,
+                                   Z_SOAP_Handler *handlers,
+                                   const char *encoding,
+                                   const char *stylesheet);
+
+YAZ_EXPORT int z_soap_error(ODR o, Z_SOAP *p,
+                            const char *fault_code, const char *fault_string,
+                            const char *details);
 
+YAZ_END_CDECL
 #endif