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 na...@apache.org on 2006/12/13 13:06:43 UTC

svn commit: r486611 - in /webservices/axis2/trunk/c/util: include/axis2_property.h src/property.c

Author: nandika
Date: Wed Dec 13 04:06:42 2006
New Revision: 486611

URL: http://svn.apache.org/viewvc?view=rev&rev=486611
Log:
axis2_property_create_with_args function added

Modified:
    webservices/axis2/trunk/c/util/include/axis2_property.h
    webservices/axis2/trunk/c/util/src/property.c

Modified: webservices/axis2/trunk/c/util/include/axis2_property.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_property.h?view=diff&rev=486611&r1=486610&r2=486611
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_property.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_property.h Wed Dec 13 04:06:42 2006
@@ -88,6 +88,13 @@
 AXIS2_EXTERN axis2_property_t * AXIS2_CALL
 axis2_property_create(const axis2_env_t *env);
 
+AXIS2_EXTERN axis2_property_t *AXIS2_CALL
+axis2_property_create_with_args(
+    const axis2_env_t *env,
+    axis2_scope_t scope,
+    AXIS2_FREE_VOID_ARG free_func,
+    void *value);
+
 /*************************** Function macros **********************************/
 
 #define AXIS2_PROPERTY_FREE(property, env) \

Modified: webservices/axis2/trunk/c/util/src/property.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/property.c?view=diff&rev=486611&r1=486610&r2=486611
==============================================================================
--- webservices/axis2/trunk/c/util/src/property.c (original)
+++ webservices/axis2/trunk/c/util/src/property.c Wed Dec 13 04:06:42 2006
@@ -90,7 +90,31 @@
     property_impl->property.ops->get_value = axis2_property_get_value;
     return &(property_impl->property);
 }
-
+/*****************************************************************************/
+AXIS2_EXTERN axis2_property_t *AXIS2_CALL
+axis2_property_create_with_args(
+    const axis2_env_t *env,
+    axis2_scope_t scope,
+    AXIS2_FREE_VOID_ARG free_func,
+    void *value)
+{
+    axis2_property_impl_t *property_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+
+    property_impl = (axis2_property_impl_t *) axis2_property_create(env);
+
+    if (NULL == property_impl)
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    property_impl->value = value;
+    property_impl->scope = scope;
+    property_impl->free_func = free_func;
+
+    return &(property_impl->property);
+}
 /***************************Function implementation****************************/
 
 axis2_status_t AXIS2_CALL



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