axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r351571 - /webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c
Date Fri, 02 Dec 2005 04:13:29 GMT
Author: samisa
Date: Thu Dec  1 20:13:24 2005
New Revision: 351571

URL: http://svn.apache.org/viewcvs?rev=351571&view=rev
Log:
Fixed compiler errors

Modified:
    webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c

Modified: webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c?rev=351571&r1=351570&r2=351571&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/src/relates_to.c Thu Dec  1 20:13:24 2005
@@ -15,6 +15,10 @@
  */
  
  /** <wsa:RelatesTo RelationshipType="..."?>xs:anyURI</wsa:RelatesTo> */
+
+#include <axis2_relates_to.h>
+#include <axis2_string.h>
+
 typedef struct axis2_relates_to_impl
 {
     axis2_relates_to_t relates_to;    
@@ -25,8 +29,14 @@
 } axis2_relates_to_impl_t;
 
 /** Interface to implementation conversion macro */
-#define AXIS2_INTF_TO_IMPL(replace_to) ((axis2_phase_impl_t *)replace_to)
+#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,
axis2_env_t **env);
+axis2_status_t AXIS2_CALL axis2_relates_to_set_value(struct axis2_relates_to *relates_to,
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,
axis2_env_t **env);
+axis2_status_t AXIS2_CALL axis2_relates_to_set_relationship_type(struct axis2_relates_to
*relates_to, axis2_env_t **env, axis2_char_t *relationship_type);
+axis2_status_t AXIS2_CALL axis2_relates_to_free (struct axis2_relates_to *relates_to, 
+                                               axis2_env_t **env);
 
 axis2_relates_to_t* AXIS2_CALL axis2_relates_to_create(axis2_env_t **env, axis2_char_t *value,
axis2_char_t *relationship_type) 
 {
@@ -41,6 +51,7 @@
         return NULL;        
     }
 
+    relates_to_impl->relates_to.ops = NULL;
     relates_to_impl->value = NULL;
     relates_to_impl->relationship_type = NULL;
     
@@ -67,7 +78,6 @@
     }
 
     /* initialize operations */
-    relates_to_impl->relates_to.ops = NULL;
     relates_to_impl->relates_to.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_relates_to_ops_t)
);
     if (!relates_to_impl->relates_to.ops)
     {
@@ -81,17 +91,17 @@
     return &(relates_to_impl->relates_to);
 }
 
-axis2_char_t* AXIS2_CALL axis2_relates_to_get_value(struct axis_relates_to *relates_to, axis2_env_t
**env) 
+axis2_char_t* AXIS2_CALL axis2_relates_to_get_value(struct axis2_relates_to *relates_to,
axis2_env_t **env) 
 {
     AXIS2_FUNC_PARAM_CHECK(relates_to, env, NULL);
     return AXIS2_INTF_TO_IMPL(relates_to)->value;
 }
 
-axis2_status_t AXIS2_CALL axis2_relates_to_set_value(struct axis_relates_to *relates_to,
axis2_env_t **env, axis2_char_t * value) 
+axis2_status_t AXIS2_CALL axis2_relates_to_set_value(struct axis2_relates_to *relates_to,
axis2_env_t **env, axis2_char_t * value) 
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     
-    AXIS2_FUNC_PARAM_CHECK(qname, env,AXIS2_FAILURE);
+    AXIS2_FUNC_PARAM_CHECK(relates_to, env, AXIS2_FAILURE);
     
     relates_to_impl = AXIS2_INTF_TO_IMPL(relates_to);
     
@@ -114,13 +124,13 @@
     return AXIS2_SUCCESS;
 }
 
-axis2_char_t* AXIS2_CALL axis2_relates_to_get_relationship_type(struct axis_relates_to *relates_to,
axis2_env_t **env) 
+axis2_char_t* AXIS2_CALL axis2_relates_to_get_relationship_type(struct axis2_relates_to *relates_to,
axis2_env_t **env) 
 {
     AXIS2_FUNC_PARAM_CHECK(relates_to, env, NULL);
     return AXIS2_INTF_TO_IMPL(relates_to)->relationship_type;
 }
 
-axis2_status_t AXIS2_CALL axis2_relates_to_set_relationship_type(struct axis_relates_to *relates_to,
axis2_env_t **env, axis2_char_t *relationship_type) 
+axis2_status_t AXIS2_CALL axis2_relates_to_set_relationship_type(struct axis2_relates_to
*relates_to, axis2_env_t **env, axis2_char_t *relationship_type) 
 {
     axis2_relates_to_impl_t *relates_to_impl = NULL;
     



Mime
View raw message