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.h66
1 files changed, 30 insertions, 36 deletions
diff --git a/libcsoap/soap-env.h b/libcsoap/soap-env.h
index 6a3d909..72dd999 100644
--- a/libcsoap/soap-env.h
+++ b/libcsoap/soap-env.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: soap-env.h,v 1.10 2006/01/10 11:21:55 snowdrop Exp $
+ * $Id: soap-env.h,v 1.11 2006/01/10 11:29:04 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -73,10 +73,10 @@ typedef struct _SoapEnv
*/
herror_t
-soap_env_new_with_fault (fault_code_t faultcode,
- const char *faultstring,
- const char *faultactor,
- const char *detail, SoapEnv ** out);
+soap_env_new_with_fault(fault_code_t faultcode,
+ const char *faultstring,
+ const char *faultactor,
+ const char *detail, SoapEnv ** out);
/**
Creates an envelope with a method to invoke a soap service.
@@ -104,8 +104,7 @@ soap_env_new_with_fault (fault_code_t faultcode,
*/
herror_t
-soap_env_new_with_method (const char *urn, const char *method,
- SoapEnv ** out);
+soap_env_new_with_method(const char *urn, const char *method, SoapEnv ** out);
/**
@@ -138,7 +137,7 @@ soap_env_new_with_method (const char *urn, const char *method,
*/
-herror_t soap_env_new_with_response (SoapEnv * req, SoapEnv ** out);
+herror_t soap_env_new_with_response(SoapEnv * req, SoapEnv ** out);
/**
@@ -150,7 +149,7 @@ herror_t soap_env_new_with_response (SoapEnv * req, SoapEnv ** out);
@returns H_OK if success
*/
-herror_t soap_env_new_from_doc (xmlDocPtr doc, SoapEnv ** out);
+herror_t soap_env_new_from_doc(xmlDocPtr doc, SoapEnv ** out);
/**
@@ -161,7 +160,7 @@ herror_t soap_env_new_from_doc (xmlDocPtr doc, SoapEnv ** out);
@param out the output envelope object
@returns H_OK if success
*/
-herror_t soap_env_new_from_buffer (const char *buffer, SoapEnv ** out);
+herror_t soap_env_new_from_buffer(const char *buffer, SoapEnv ** out);
/**
@@ -171,21 +170,16 @@ herror_t soap_env_new_from_buffer (const char *buffer, SoapEnv ** out);
@param out the output envelope object
@returns H_OK if success
*/
-herror_t soap_env_new_from_stream (http_input_stream_t * in, SoapEnv ** out);
+herror_t soap_env_new_from_stream(http_input_stream_t * in, SoapEnv ** out);
/* --------------------------------------------------- */
/* XML Serializer functions and typedefs */
/* --------------------------------------------------- */
-typedef void (*XmlSerializerCallback)
- (void * /* obj */ , const xmlChar * /* root_element_name */ ,
- void (*OnStartElement) (const xmlChar * element_name, int attr_count,
- xmlChar ** keys, xmlChar ** values,
- void *userData),
- void (*OnCharacters) (const xmlChar * element_name, const xmlChar * chars,
- void *userData),
- void (*OnEndElement) (const xmlChar * element_name, void *userData),
- void * /* userdata */ );
+typedef void (*XmlSerializerCallback) (void * /* obj */ , const xmlChar * /* root_element_name
+ */ ,
+ void (*OnStartElement) (const xmlChar * element_name, int attr_count, xmlChar ** keys, xmlChar ** values, void *userData), void (*OnCharacters) (const xmlChar * element_name, const xmlChar * chars, void *userData), void (*OnEndElement) (const xmlChar * element_name, void *userData), void * /* userdata
+ */ );
/* ------------------------------------------------------ */
@@ -211,8 +205,8 @@ typedef void (*XmlSerializerCallback)
@see tutorial
*/
xmlNodePtr
-soap_env_add_item (SoapEnv * env, const char *type,
- const char *name, const char *value);
+soap_env_add_item(SoapEnv * env, const char *type,
+ const char *name, const char *value);
/**
@@ -232,7 +226,7 @@ soap_env_add_item (SoapEnv * env, const char *type,
@see soap_ctx_add_file tutorial
*/
xmlNodePtr
-soap_env_add_attachment (SoapEnv * env, const char *name, const char *href);
+soap_env_add_attachment(SoapEnv * env, const char *name, const char *href);
/**
@@ -243,8 +237,8 @@ soap_env_add_attachment (SoapEnv * env, const char *name, const char *href);
*/
void
-soap_env_add_custom (SoapEnv * env, void *obj, XmlSerializerCallback cb,
- const char *type, const char *name);
+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
@@ -256,8 +250,8 @@ soap_env_add_custom (SoapEnv * env, void *obj, XmlSerializerCallback cb,
@see soap_env_add_item
*/
xmlNodePtr
-soap_env_add_itemf (SoapEnv * env, const char *type,
- const char *name, const char *value, ...);
+soap_env_add_itemf(SoapEnv * env, const char *type,
+ const char *name, const char *value, ...);
/**
@@ -285,7 +279,7 @@ soap_env_add_itemf (SoapEnv * env, const char *type,
@see tutorial
*/
xmlNodePtr
-soap_env_push_item (SoapEnv * env, const char *type, const char *name);
+soap_env_push_item(SoapEnv * env, const char *type, const char *name);
/**
Sets the xml pointer 1 level higher.
@@ -293,14 +287,14 @@ soap_env_push_item (SoapEnv * env, const char *type, const char *name);
@param env The envelope object
@see soap_env_push_item
*/
-void soap_env_pop_item (SoapEnv * env);
+void soap_env_pop_item(SoapEnv * env);
/**
Free the envelope.
@param env The envelope object
*/
-void soap_env_free (SoapEnv * env);
+void soap_env_free(SoapEnv * env);
/* --------------------------------------------------- */
@@ -311,29 +305,29 @@ void soap_env_free (SoapEnv * env);
/**
Gets the xml node pointing to SOAP Body.
*/
-xmlNodePtr soap_env_get_body (SoapEnv * env);
+xmlNodePtr soap_env_get_body(SoapEnv * env);
/**
Get the xml node pointing to SOAP method (call)
*/
-xmlNodePtr soap_env_get_method (SoapEnv * env);
+xmlNodePtr soap_env_get_method(SoapEnv * env);
/**
Get the xml node pointing to SOAP Fault
*/
-xmlNodePtr soap_env_get_fault (SoapEnv * env);
+xmlNodePtr soap_env_get_fault(SoapEnv * env);
/**
Get the xml node pointing to SOAP Header
*/
-xmlNodePtr soap_env_get_header (SoapEnv * env);
+xmlNodePtr soap_env_get_header(SoapEnv * env);
-int soap_env_find_urn (SoapEnv * env, char *urn);
-int soap_env_find_methodname (SoapEnv * env, char *methodname);
+int soap_env_find_urn(SoapEnv * env, char *urn);
+int soap_env_find_methodname(SoapEnv * env, char *methodname);