You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/10/13 06:20:11 UTC
svn commit: r320648 - in /webservices/axis2/trunk/c: include/axis2_defines.h
include/axis2_error.h include/axis2_om_namespace.h include/axis2_om_text.h
modules/xml/om/src/axis2_om_text.c
Author: samisa
Date: Wed Oct 12 21:20:01 2005
New Revision: 320648
URL: http://svn.apache.org/viewcvs?rev=320648&view=rev
Log:
Changed axis2_char to axis2_char_t becase it is a type
Modified:
webservices/axis2/trunk/c/include/axis2_defines.h
webservices/axis2/trunk/c/include/axis2_error.h
webservices/axis2/trunk/c/include/axis2_om_namespace.h
webservices/axis2/trunk/c/include/axis2_om_text.h
webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_text.c
Modified: webservices/axis2/trunk/c/include/axis2_defines.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_defines.h?rev=320648&r1=320647&r2=320648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_defines.h (original)
+++ webservices/axis2/trunk/c/include/axis2_defines.h Wed Oct 12 21:20:01 2005
@@ -8,7 +8,7 @@
#include <stddef.h>
-typedef char axis2_char;
+typedef char axis2_char_t_t;
typedef unsigned int axis2_ssize_t;
#define AXIS2_TRUE 1
Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=320648&r1=320647&r2=320648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Wed Oct 12 21:20:01 2005
@@ -24,7 +24,7 @@
struct axis2_error_ops;
typedef struct axis2_error_ops {
- axis2_char* (*get_message)();
+ axis2_char_t* (*get_message)();
} axis2_error_ops_t;
typedef struct axis2_error {
Modified: webservices/axis2/trunk/c/include/axis2_om_namespace.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_namespace.h?rev=320648&r1=320647&r2=320648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_namespace.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_namespace.h Wed Oct 12 21:20:01 2005
@@ -19,16 +19,30 @@
/**
* @file axis2_om_namespace.h
- * @brief defines axis2_om_namespace data structure, used for constructing the om tree and its
- * manipulation functions
- * represents an xml namespace
+ * @brief defines axis2_om_namespace data structure, used for representing XML namespaces in OM
*/
-#include <axis2.h>
+#include <axis2_environment.h>
#include <axis2_om_output.h>
+struct axis2_om_namespace;
+struct axis2_om_namespace_ops;
+
+/** \struct axis2_om_namespace_ops_t
+ \brief OM Namespace operations struct
-typedef struct axis2_om_namespace_t {
+ Encapsulator struct for operations of axis2_om_namespace_t
+*/
+typedef struct axis2_om_namespace_ops
+{
+} axis2_om_namespace_ops_t;
+
+/** \struct axis2_om_namespace_t
+ \brief OM namespace struct
+
+ Handles the XML namespace in OM
+*/
+typedef struct axis2_om_namespace {
char *uri;
char *prefix;
} axis2_om_namespace_t;
Modified: webservices/axis2/trunk/c/include/axis2_om_text.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_text.h?rev=320648&r1=320647&r2=320648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_text.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_text.h Wed Oct 12 21:20:01 2005
@@ -29,7 +29,7 @@
struct axis2_om_text_ops;
/** \struct axis2_om_text_ops_t
- \brief OM Text operations struct
+ \brief OM text operations struct
Encapsulator struct for operations of axis2_om_text_t
*/
@@ -64,17 +64,17 @@
/**
* Text value
*/
- axis2_char *value;
+ axis2_char_t *value;
/**
* The following fields are for MTOM
*/
/*axis2_om_namespace_t *ns;*/
- axis2_char *mime_type;
+ axis2_char_t *mime_type;
int optimize;
- axis2_char *localname;
+ axis2_char_t *localname;
int is_binary;
- axis2_char *content_id;
+ axis2_char_t *content_id;
/*axis2_om_attribute_t *attribute;*/
} axis2_om_text_t;
@@ -89,7 +89,7 @@
* @return pointer to newly created text struct
*/
-axis2_om_text_t *axis2_om_text_create(axis2_environment_t *environment, axis2_om_node_t *parent,const axis2_char *value
+axis2_om_text_t *axis2_om_text_create(axis2_environment_t *environment, axis2_om_node_t *parent,const axis2_char_t *value
,axis2_om_node_t **node);
#define axis2_om_text_serialize(environment, om_text, om_output) ((om_text)->ops->serialize(environment, om_text, om_output))
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_text.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_text.c?rev=320648&r1=320647&r2=320648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_text.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_text.c Wed Oct 12 21:20:01 2005
@@ -25,7 +25,7 @@
int axis2_om_text_ops_free(axis2_environment_t *environment, axis2_om_text_t *om_text);
int axis2_om_text_ops_serialize(axis2_environment_t *environment, const axis2_om_text_t *om_text, axis2_om_output_t* om_output);
-axis2_om_text_t *axis2_om_text_create(axis2_environment_t *environment, axis2_om_node_t *parent,const axis2_char *value
+axis2_om_text_t *axis2_om_text_create(axis2_environment_t *environment, axis2_om_node_t *parent,const axis2_char_t *value
,axis2_om_node_t **node)
{
axis2_om_text_t *om_text = NULL;
@@ -55,7 +55,7 @@
om_text->value = NULL;
if (value)
- om_text->value = (axis2_char*) axis2_strdup(environment->allocator, value);
+ om_text->value = (axis2_char_t*) axis2_strdup(environment->allocator, value);
/* om_text->attribute = NULL; */
om_text->content_id = NULL;