Stylesheet support.
[yaz-moved-to-github.git] / include / yaz / soap.h
index bdbb098..bfbc46c 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 2002-2003, Index Data.
  * See the file LICENSE for details.
  *
- * $Id: soap.h,v 1.3 2003-03-11 11:09:17 adam Exp $
+ * $Id: soap.h,v 1.6 2004-01-07 20:36:44 adam Exp $
  */
 
 #ifndef YAZ_SOAP_H
@@ -10,6 +10,8 @@
 
 #include <yaz/odr.h>
 
+YAZ_BEGIN_CDECL
+
 typedef struct {
     char *fault_code;
     char *fault_string;
@@ -47,7 +49,13 @@ 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);
+                               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