summaryrefslogtreecommitdiffstats
path: root/libcsoap/soap-env.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap/soap-env.h')
-rw-r--r--libcsoap/soap-env.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/libcsoap/soap-env.h b/libcsoap/soap-env.h
index 5cb0f57..5f29c14 100644
--- a/libcsoap/soap-env.h
+++ b/libcsoap/soap-env.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: soap-env.h,v 1.4 2004/05/14 09:27:52 snowdrop Exp $
+ * $Id: soap-env.h,v 1.5 2004/06/08 12:54:09 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -158,6 +158,17 @@ SoapEnv *soap_env_new_from_doc(xmlDocPtr doc);
SoapEnv *soap_env_new_from_buffer(const char* buffer);
+/* --------------------------------------------------- */
+/* XML Serializer functions and typedefs */
+/* --------------------------------------------------- */
+
+typedef void (*XmlSerializerCallback)
+ (void* /*obj*/, const char * /*root_element_name*/,
+ void (*OnStartElement)(const char* element_name, int attr_count, char **keys, char **values, void* userData),
+ void (*OnCharacters)(const char* element_name, const char* chars, void* userData),
+ void (*OnEndElement)(const char* element_name, void* userData),
+ void* /* userdata*/);
+
/* ------------------------------------------------------ */
/* XML build and stack function */
@@ -187,6 +198,17 @@ soap_env_add_item(SoapEnv* env, const char *type,
/**
+ Serialize and adds obj to the envelope.
+ TODO: Document this function !
+ <br>
+ <b>Important: </b>
+
+ */
+void
+soap_env_add_custom(SoapEnv* env, void *obj, XmlSerializerCallback cb,
+ const char *type, const char *name);
+
+/**
Same as soap_env_add_item() with c style arguments
like in printf(). "value" is the format string.
<br>
@@ -284,6 +306,9 @@ int soap_env_find_methodname(SoapEnv *env, char *methodname);
+
+
+
#endif