axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r433544 - in /webservices/axis2/trunk/c: include/axis2_relates_to.h modules/core/addr/relates_to.c
Date Tue, 22 Aug 2006 06:35:43 GMT
Author: pini
Date: Mon Aug 21 23:35:42 2006
New Revision: 433544

URL: http://svn.apache.org/viewvc?rev=433544&view=rev
Log:
Fomatting fixes and parameter changes to const

Modified:
    webservices/axis2/trunk/c/include/axis2_relates_to.h
    webservices/axis2/trunk/c/modules/core/addr/relates_to.c

Modified: webservices/axis2/trunk/c/include/axis2_relates_to.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_relates_to.h?rev=433544&r1=433543&r2=433544&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_relates_to.h (original)
+++ webservices/axis2/trunk/c/include/axis2_relates_to.h Mon Aug 21 23:35:42 2006
@@ -22,6 +22,12 @@
  * @brief Axis2 core addressing interface
  */
 
+/**
+ * @defgroup axis2_relates_to relates to
+ * @ingroup axis2_addr
+ * @{
+ */
+
 #include <axis2_defines.h>
 #include <axis2_env.h>
 #include <axis2_const.h>
@@ -31,106 +37,114 @@
 {
 #endif
 
-    struct axis2_relates_to;
-    struct axis2_relates_to_ops;
-    
-/**
- * @defgroup axis2_relates_to relates to
- * @ingroup axis2_addr
- * @{
- */
+    typedef struct axis2_relates_to axis2_relates_to_t;
+    typedef struct axis2_relates_to_ops axis2_relates_to_ops_t;
 
-/**
- *   \brief Dispatcher ops struct
- */
- AXIS2_DECLARE_DATA typedef struct axis2_relates_to_ops
-    { 
+
+    /**
+     * Dispatcher ops struct
+     */
+    struct axis2_relates_to_ops
+    {
         /**
-         * Method get_value
-         *
-         * @return
+         * @param relates_to relates to
+         * @param env pointer to environment struct
          */
-        axis2_char_t* (AXIS2_CALL *
-      get_value)(struct axis2_relates_to *relates_to, 
-               const axis2_env_t *env);
+        axis2_char_t *(AXIS2_CALL *
+                get_value)(
+                    const axis2_relates_to_t *relates_to,
+                    const axis2_env_t *env);
 
         /**
-         * Method set_value
-         *
-         * @param value
+         * @param relates_to relates to
+         * @param env pointer to environment struct
+         * @param value pointer to value
          */
         axis2_status_t (AXIS2_CALL *
-      set_value)(struct axis2_relates_to *relates_to, 
-                const axis2_env_t *env, 
-                   axis2_char_t * value);
+                set_value)(
+                    struct axis2_relates_to *relates_to,
+                    const axis2_env_t *env,
+                    axis2_char_t *value);
 
         /**
-         * Method get_relationship_type
-         *
-         * @return
+         * @param relates_to relates to
+         * @param env pointer to environment struct
          */
-        axis2_char_t* (AXIS2_CALL *
-      get_relationship_type)(struct axis2_relates_to *relates_to, 
-                            const axis2_env_t *env);
+        axis2_char_t *(AXIS2_CALL *
+                get_relationship_type)(
+                    const axis2_relates_to_t *relates_to,
+                    const axis2_env_t *env);
 
         /**
-         * Method set_relationship_type
-         *
-         * @param relationship_type
+         * @param relates_to relates to
+         * @param env pointer to environment struct
+         * @param relationship_type pointer to relationship type
          */
         axis2_status_t (AXIS2_CALL *
-      set_relationship_type)(struct axis2_relates_to *relates_to, 
-                            const axis2_env_t *env, 
-                               axis2_char_t *relationship_type);
-        
-       /**
-        * frees relates_to struct
-        */
-        
+                set_relationship_type)(
+                    struct axis2_relates_to *relates_to,
+                    const axis2_env_t *env,
+                    axis2_char_t *relationship_type);
+
+        /**
+         * @param relates_to relates to
+         * @param env pointer to environment struct
+         */
         axis2_status_t (AXIS2_CALL *
-      free) (struct axis2_relates_to *relates_to, 
-               const axis2_env_t *env);
-        
-    } axis2_relates_to_ops_t;
-   
-   /** 
-    * \brief Dispatcher struct
-    */
-    typedef struct axis2_relates_to
+                free)(
+                    struct axis2_relates_to *relates_to,
+                    const axis2_env_t *env);
+    };
+
+    /**
+     * Dispatcher struct
+     */
+    struct axis2_relates_to
     {
         /** Dispatcher related ops */
         axis2_relates_to_ops_t *ops;
-    } axis2_relates_to_t;
+    };
 
 
-/**
- * creates relates_to struct
- *
- * @param value
- * @param relationship_type
- */
-AXIS2_EXTERN axis2_relates_to_t* AXIS2_CALL
-axis2_relates_to_create(const axis2_env_t *env, 
-                  const axis2_char_t *value, 
-                  const axis2_char_t *relationship_type);
-    
+    /**
+     * creates relates_to struct
+     * @param env pointer to environment struct
+     * @param value pointer to value
+     * @param relationship_type pointer to relationship type
+     */
+    AXIS2_EXTERN axis2_relates_to_t *AXIS2_CALL
+    axis2_relates_to_create(
+        const axis2_env_t *env,
+        const axis2_char_t *value,
+        const axis2_char_t *relationship_type);
+
+/** Get value.
+    @sa axis2_relates_to_ops#get_value */
 #define AXIS2_RELATES_TO_GET_VALUE(relates_to, env) \
       ((relates_to)->ops->get_value(relates_to, env))
-   
+
+/** Set value.
+    @sa axis2_relates_to_ops#set_value */
 #define AXIS2_RELATES_TO_SET_VALUE(relates_to, env, vlaue) \
       ((relates_to)->ops->set_value(relates_to, env, vlaue))
-   
+
+/** Gets the relationship type.
+    @sa axis2_relates_to_ops#get_relationship */
 #define AXIS2_RELATES_TO_GET_RELATIONSHIP_TYPE(relates_to, env) \
       ((relates_to)->ops->get_relationship_type(relates_to, env))
-      
+
+/** Sets the relationship type.
+    @sa axis2_relates_to_ops#set_relationship */
 #define AXIS2_RELATES_TO_SET_RELATIONSHIP_TYPE(relates_to, env, relationship_type) \
       ((relates_to)->ops->set_relationship_type(relates_to, env, relationship_type))
-      
+
+/** Free.
+    @sa axis2_relates_to_ops#free */
 #define AXIS2_RELATES_TO_FREE(relates_to, env) \
       ((relates_to)->ops->free(relates_to, env))
-    
+
 /** @} */
-    
+
 #ifdef __cplusplus
 }
 #endif

Modified: webservices/axis2/trunk/c/modules/core/addr/relates_to.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/addr/relates_to.c?rev=433544&r1=433543&r2=433544&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/relates_to.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/relates_to.c Mon Aug 21 23:35:42 2006
@@ -26,38 +26,45 @@
     axis2_char_t *value;
     /** relationship type */
     axis2_char_t *relationship_type;
-} axis2_relates_to_impl_t;
+}
+axis2_relates_to_impl_t;
 
 /** Interface to implementation conversion macro */
 #define AXIS2_INTF_TO_IMPL(relates_to) ((axis2_relates_to_impl_t *)relates_to)
 
 
-axis2_char_t* AXIS2_CALL 
-axis2_relates_to_get_value(struct axis2_relates_to *relates_to, 
-                           const axis2_env_t *env);
+axis2_char_t *AXIS2_CALL 
+axis2_relates_to_get_value(
+    const axis2_relates_to_t *relates_to, 
+    const axis2_env_t *env);
                            
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_set_value(struct axis2_relates_to *relates_to, 
-                           const axis2_env_t *env, 
-                           axis2_char_t * value);
+axis2_relates_to_set_value(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env, 
+    axis2_char_t *value);
                            
-axis2_char_t* AXIS2_CALL 
-axis2_relates_to_get_relationship_type(struct axis2_relates_to *relates_to, 
-                                       const axis2_env_t *env);
+axis2_char_t *AXIS2_CALL 
+axis2_relates_to_get_relationship_type(
+    const axis2_relates_to_t *relates_to, 
+    const axis2_env_t *env);
                                        
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_set_relationship_type(struct axis2_relates_to *relates_to, 
-                                       const axis2_env_t *env, 
-                                       axis2_char_t *relationship_type);
+axis2_relates_to_set_relationship_type(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env, 
+    axis2_char_t *relationship_type);
                                        
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_free (struct axis2_relates_to *relates_to, 
-                       const axis2_env_t *env);
-
-axis2_relates_to_t* AXIS2_CALL 
-axis2_relates_to_create(const axis2_env_t *env, 
-                        const axis2_char_t *value, 
-                        const axis2_char_t *relationship_type) 
+axis2_relates_to_free(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env);
+
+axis2_relates_to_t *AXIS2_CALL 
+axis2_relates_to_create(
+    const axis2_env_t *env, 
+    const axis2_char_t *value, 
+    const axis2_char_t *relationship_type) 
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     
@@ -123,18 +130,20 @@
     return &(relates_to_impl->relates_to);
 }
 
-axis2_char_t* AXIS2_CALL 
-axis2_relates_to_get_value(struct axis2_relates_to *relates_to, 
-                           const axis2_env_t *env) 
+axis2_char_t *AXIS2_CALL 
+axis2_relates_to_get_value(
+    const axis2_relates_to_t *relates_to, 
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(relates_to)->value;
 }
 
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_set_value(struct axis2_relates_to *relates_to, 
-                           const axis2_env_t *env, 
-                           axis2_char_t * value) 
+axis2_relates_to_set_value(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env, 
+    axis2_char_t *value) 
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     
@@ -150,7 +159,7 @@
 
     if (value)
     {
-        relates_to_impl->value = (axis2_char_t*)AXIS2_STRDUP(value, env);
+        relates_to_impl->value = (axis2_char_t *)AXIS2_STRDUP(value, env);
         if (!(relates_to_impl->value))
         {
             AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
@@ -161,18 +170,20 @@
     return AXIS2_SUCCESS;
 }
 
-axis2_char_t* AXIS2_CALL 
-axis2_relates_to_get_relationship_type(struct axis2_relates_to *relates_to, 
-                                       const axis2_env_t *env) 
+axis2_char_t *AXIS2_CALL 
+axis2_relates_to_get_relationship_type(
+    const axis2_relates_to_t *relates_to, 
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(relates_to)->relationship_type;
 }
 
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_set_relationship_type(struct axis2_relates_to *relates_to, 
-                                       const axis2_env_t *env, 
-                                       axis2_char_t *relationship_type) 
+axis2_relates_to_set_relationship_type(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env, 
+    axis2_char_t *relationship_type) 
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     
@@ -189,7 +200,7 @@
     if (relationship_type)
     {
         relates_to_impl->relationship_type = 
-                (axis2_char_t*)AXIS2_STRDUP(relationship_type, env);
+                (axis2_char_t *)AXIS2_STRDUP(relationship_type, env);
         if (!(relates_to_impl->relationship_type))
         {
             AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
@@ -201,8 +212,9 @@
 }
 
 axis2_status_t AXIS2_CALL 
-axis2_relates_to_free (struct axis2_relates_to *relates_to, 
-                       const axis2_env_t *env)
+axis2_relates_to_free(
+    struct axis2_relates_to *relates_to, 
+    const axis2_env_t *env)
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message