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 ma...@apache.org on 2007/04/23 09:07:14 UTC
svn commit: r531356 - in /webservices/axis2/scratch/c/neethi/axis2c/neethi:
include/neethi_policy.h src/policy.c src/registry.c
Author: manjula
Date: Mon Apr 23 00:07:13 2007
New Revision: 531356
URL: http://svn.apache.org/viewvc?view=rev&rev=531356
Log:
Adding latest modifications.
Modified:
webservices/axis2/scratch/c/neethi/axis2c/neethi/include/neethi_policy.h
webservices/axis2/scratch/c/neethi/axis2c/neethi/src/policy.c
webservices/axis2/scratch/c/neethi/axis2c/neethi/src/registry.c
Modified: webservices/axis2/scratch/c/neethi/axis2c/neethi/include/neethi_policy.h
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/axis2c/neethi/include/neethi_policy.h?view=diff&rev=531356&r1=531355&r2=531356
==============================================================================
--- webservices/axis2/scratch/c/neethi/axis2c/neethi/include/neethi_policy.h (original)
+++ webservices/axis2/scratch/c/neethi/axis2c/neethi/include/neethi_policy.h Mon Apr 23 00:07:13 2007
@@ -73,7 +73,29 @@
neethi_policy_get_alternatives(
neethi_policy_t *neethi_policy,
const axutil_env_t *env);
-
+
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+ neethi_policy_get_name(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env);
+
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ neethi_policy_set_name(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env,
+ axis2_char_t *name);
+
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+ neethi_policy_get_id(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env);
+
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ neethi_policy_set_id(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env,
+ axis2_char_t *id);
+
/** @} */
Modified: webservices/axis2/scratch/c/neethi/axis2c/neethi/src/policy.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/axis2c/neethi/src/policy.c?view=diff&rev=531356&r1=531355&r2=531356
==============================================================================
--- webservices/axis2/scratch/c/neethi/axis2c/neethi/src/policy.c (original)
+++ webservices/axis2/scratch/c/neethi/axis2c/neethi/src/policy.c Mon Apr 23 00:07:13 2007
@@ -23,6 +23,9 @@
struct neethi_policy_t
{
axutil_array_list_t *policy_components;
+/* axutil_hash_t *attributes_map;*/
+ axis2_char_t *name;
+ axis2_char_t *id;
};
AXIS2_EXTERN neethi_policy_t *AXIS2_CALL
@@ -49,6 +52,20 @@
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
+ /*
+ neethi_policy->attributes_map = NULL;
+
+ neethi_policy->attributes_map = axutil_hash_make(env);
+ if (!(neethi_policy->attributes_map))
+ {
+ neethi_policy_free(neethi_policy, env);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ */
+ neethi_policy->name = NULL;
+ neethi_policy->id = NULL;
+
return neethi_policy;
}
@@ -194,4 +211,46 @@
return neethi_exactlyone_get_policy_components(exactlyone, env);
+}
+
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+neethi_policy_get_name(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env)
+{
+
+ AXIS2_ENV_CHECK(env, NULL);
+ return neethi_policy->name;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+neethi_policy_set_name(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env,
+ axis2_char_t *name)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ neethi_policy->name = name;
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+neethi_policy_get_id(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env)
+{
+
+ AXIS2_ENV_CHECK(env, NULL);
+ return neethi_policy->id;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+neethi_policy_set_id(
+ neethi_policy_t *neethi_policy,
+ const axutil_env_t *env,
+ axis2_char_t *id)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ neethi_policy->id = id;
+ return AXIS2_SUCCESS;
}
Modified: webservices/axis2/scratch/c/neethi/axis2c/neethi/src/registry.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/axis2c/neethi/src/registry.c?view=diff&rev=531356&r1=531355&r2=531356
==============================================================================
--- webservices/axis2/scratch/c/neethi/axis2c/neethi/src/registry.c (original)
+++ webservices/axis2/scratch/c/neethi/axis2c/neethi/src/registry.c Mon Apr 23 00:07:13 2007
@@ -94,7 +94,6 @@
}
axutil_hash_free(neethi_registry->registry , env);
}
-
if(neethi_registry->parent)
{
neethi_registry_free(neethi_registry->parent, env);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org