You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/05/24 11:56:47 UTC
svn commit: r409100 - in /webservices/axis2/trunk/c:
axiom/include/axis2_xml_reader.h util/include/axis2_utils.h
Author: samisa
Date: Wed May 24 02:56:46 2006
New Revision: 409100
URL: http://svn.apache.org/viewvc?rev=409100&view=rev
Log:
Added the typedef for the function pointers used as callbacks
Modified:
webservices/axis2/trunk/c/axiom/include/axis2_xml_reader.h
webservices/axis2/trunk/c/util/include/axis2_utils.h
Modified: webservices/axis2/trunk/c/axiom/include/axis2_xml_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axis2_xml_reader.h?rev=409100&r1=409099&r2=409100&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axis2_xml_reader.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axis2_xml_reader.h Wed May 24 02:56:46 2006
@@ -336,8 +336,8 @@
AXIS2_DECLARE(axis2_xml_reader_t *)
axis2_xml_reader_create_for_io(axis2_env_t **env,
- int (*read_input_callback)(char *buffer,int size,void* ctx),
- int (*close_input_callback)(void *ctx),
+ AXIS2_READ_INPUT_CALLBACK,
+ AXIS2_CLOSE_INPUT_CALLBACK,
void *ctx,
const axis2_char_t *encoding);
Modified: webservices/axis2/trunk/c/util/include/axis2_utils.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_utils.h?rev=409100&r1=409099&r2=409100&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_utils.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_utils.h Wed May 24 02:56:46 2006
@@ -96,8 +96,15 @@
#define AXIS2_CREATE_FUNCTION "axis2_get_instance"
#define AXIS2_DELETE_FUNCTION "axis2_remove_instance"
-typedef int (AXIS2_CALL *AXIS2_FREE_VOID_ARG) (void *obj_to_be_freed, axis2_env_t **env);
-
+typedef int (AXIS2_CALL *AXIS2_FREE_VOID_ARG) (void *obj_to_be_freed,
+ axis2_env_t **env);
+
+/* Function pointer typedef for read callback */
+typedef int (AXIS2_CALL *AXIS2_READ_INPUT_CALLBACK)(char *buffer, int size,
+ void* ctx);
+/* Function pointer typedef for close callback */
+typedef int (AXIS2_CALL *AXIS2_CLOSE_INPUT_CALLBACK)(void *ctx)
+
/**
* \brief Axis2 scopes
*
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org