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 da...@apache.org on 2005/11/03 10:33:10 UTC

svn commit: r330516 - in /webservices/axis2/trunk/c: include/ modules/core/description/src/

Author: damitha
Date: Thu Nov  3 01:32:44 2005
New Revision: 330516

URL: http://svn.apache.org/viewcvs?rev=330516&view=rev
Log:
more name changes

Added:
    webservices/axis2/trunk/c/include/axis2_message_context.h
      - copied unchanged from r330503, webservices/axis2/trunk/c/include/axis2_context_message.h
    webservices/axis2/trunk/c/include/axis2_message_receiver.h
      - copied unchanged from r330512, webservices/axis2/trunk/c/include/axis2_engine_message_receiver.h
    webservices/axis2/trunk/c/include/axis2_operation.h
      - copied unchanged from r330503, webservices/axis2/trunk/c/include/axis2_description_operation.h
    webservices/axis2/trunk/c/include/axis2_parameter_container.h
    webservices/axis2/trunk/c/include/axis2_service.h
      - copied unchanged from r330510, webservices/axis2/trunk/c/include/axis2_description_service.h
    webservices/axis2/trunk/c/include/axis2_service_group.h
Removed:
    webservices/axis2/trunk/c/include/axis2_context_message.h
    webservices/axis2/trunk/c/include/axis2_description_handler.h
    webservices/axis2/trunk/c/include/axis2_description_module.h
    webservices/axis2/trunk/c/include/axis2_description_operation.h
    webservices/axis2/trunk/c/include/axis2_description_parameter.h
    webservices/axis2/trunk/c/include/axis2_description_parameter_include.h
    webservices/axis2/trunk/c/include/axis2_description_service.h
    webservices/axis2/trunk/c/include/axis2_engine_message_receiver.h
Modified:
    webservices/axis2/trunk/c/modules/core/description/src/service_group.c

Added: webservices/axis2/trunk/c/include/axis2_parameter_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_parameter_container.h?rev=330516&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_parameter_container.h (added)
+++ webservices/axis2/trunk/c/include/axis2_parameter_container.h Thu Nov  3 01:32:44 2005
@@ -0,0 +1,158 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_DESCRIPTION_PARAM_INCLUDE_H
+#define AXIS2_DESCRIPTION_PARAM_INCLUDE_H
+
+/**
+ * @file axis2_description_param_include.h
+ * @brief Parameter handling
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_environment.h>
+#include <axis2_allocator.h>
+#include <axis2_string.h>
+#include <axis2_hash.h>
+
+/*#include <axis2_om_element.h>*/
+#include <axis2_qname.h>
+#include <axis2_description_parameter.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** @defgroup axis2_description DESCRIPTION (Axis2 Information model)
+  * @ingroup axis2
+  * @{
+  */
+
+/** @} */
+
+/**
+ * @defgroup axis2_description_parameter_include DESCRIPTION ParameterInclude
+ * @ingroup axis2_description 
+ * @{
+ */
+
+/*************************** Function macros **********************************/
+
+#define axis2_description_param_include_free(param_include, env) \
+	(axis2_description_param_include_get_ops(param_include, env)->free (env, \
+	param_include))
+
+#define axis2_description_param_include_add_param(param_include, env, \
+	param) (axis2_description_param_include_get_ops(param_include, \
+    env)->add_param (param_include, env, param))
+
+#define axis2_description_param_include_get_param(param_include, env) \
+	(axis2_description_param_include_get_ops(param_include, \
+    env)->get_param (param_include, env))
+
+#define axis2_description_param_include_get_params(param_include, env) \
+	(axis2_description_param_include_get_ops(param_include, \
+    env)->get_params (param_include, env))
+
+#define axis2_description_param_include_is_param_locked(param_include, env, \
+    param_name) (axis2_description_param_include_get_ops(param_include, \
+    env)->is_param_locked (param_include, env, param_name))
+
+/*************************** End of function macros ***************************/
+
+/***************************** Function pointers ******************************/
+
+/** Deallocate memory
+  * @return status code
+  */
+typedef axis2_status_t (*axis2_description_param_include_free_t)
+		(axis2_env_t * env,
+		 axis2_description_param_include_t * param_include);
+
+/** Add a parameter
+  * @param parameters
+  * @return status code
+  */
+typedef axis2_status_t (*axis2_description_param_include_add_param_t)
+		(axis2_description_param_include_t *param_include, axis2_env_t *env,
+		 const axis2_description_param_t * param);
+
+/** To get a parameter in a given description 
+  * @param parameter name
+  * @return parameter
+  */
+typedef axis2_description_param_t
+		*(*axis2_description_param_include_get_param_t) 
+		(axis2_description_param_include_t *param_include, axis2_env_t *env,
+		const axis2_char_t *name);
+
+/** To get all the parameters in a given description
+  * @return all the parameters contained
+  */
+typedef axis2_hash_t *(*axis2_description_param_include_get_params_t)
+        (axis2_description_param_include_t *param_include, axis2_env_t *env);
+
+/** To check whether the paramter is locked at any level
+  * @param parameter name
+  * @return whether parameter is locked
+  */
+typedef axis2_bool_t (*axis2_description_param_include_is_param_locked_t)
+		(axis2_description_param_include_t *param_include, axis2_env_t *env,
+		const axis2_char_t *param_name);
+
+/****************************** End of function pointers **********************/
+
+/**
+  * Paramter can be any thing it can be XML element with number of child 
+  * elements
+  */
+struct axis2_description_param_include_ops_s
+{
+	axis2_description_param_include_free_t free;
+
+	axis2_description_param_include_add_param_t add_param;
+
+	axis2_description_param_include_get_param_t get_param;
+
+	axis2_description_param_include_get_params_t get_params;
+
+	axis2_description_param_include_is_param_locked_t is_param_locked;
+
+};
+
+/** This will return the operations struct of the 
+  * axis2_description_param_include_t struct
+  * @return operations for axis2_description_param_include_t
+  */
+axis2_description_param_include_ops_t *axis2_description_param_include_get_ops 
+		(axis2_description_param_include_t *param_include, axis2_env_t *env);
+
+/**
+  *	Create axis2_description_param_include_t
+  * @return axis2_description_param_include_t
+  */
+axis2_description_param_include_t *axis2_description_param_include_create
+        (axis2_env_t * env);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif                          /* AXIS2_DESCRIPTION_PARAM_INCLUDE_H */

Added: webservices/axis2/trunk/c/include/axis2_service_group.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_service_group.h?rev=330516&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_service_group.h (added)
+++ webservices/axis2/trunk/c/include/axis2_service_group.h Thu Nov  3 01:32:44 2005
@@ -0,0 +1,178 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_DESCRIPTION_SERVICEGROUP_H
+#define AXIS2_DESCRIPTION_SERVICEGROUP_H
+
+/**
+ * @file axis2_description_servicegroup.h
+ * @brief axis2 DESCRIPTION CORE servicegroup
+ */
+
+#include <axis2_core.h>
+#include <axis2_description_param_include.h>
+#include <axis2_description_service.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** @defgroup axis2_description DESCRIPTION (Axis2 Information model)
+  * @ingroup axis2
+  * @{
+  */
+
+/** @} */
+
+/**
+ * @defgroup axis2_description_servicegroup DESCRIPTION Servicegroup
+ * @ingroup axis2_description 
+ * @{
+ */
+
+/**************************** Start of function macros ************************/
+
+#define axis2_description_servicegroup_free(srvgrp_desc, env) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc, env)->free (srvgrp_desc \
+		, env));
+	
+#define axis2_description_servicegroup_set_name(srvgrp_desc, env \
+		, servicegroup_name) (axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->set_name (srvgrp_desc, env, servicegroup_name));
+		
+#define axis2_description_servicegroup_get_name(srvgrp_desc, env) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->get_name(srvgrp_desc, env));
+
+#define axis2_description_servicegroup_add_service(srvgrp_desc, env \
+		, service_desc) (axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->add_service (srvgrp_desc, env, service_desc));
+
+#define axis2_description_servicegroup_get_service(srvgrp_desc, env \
+		, service_desc) (axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->get_service(srvgrp_desc, env, service_desc));
+		
+#define axis2_description_servicegroup_remove_service(srvgrp_desc, env, srvc_name) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->remove_service(srvgrp_desc, env, srvc_name));		
+
+#define axis2_description_servicegroup_add_param(srvgrp_desc, env, param) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->add_param(srvgrp_desc, env, param));
+		
+		
+
+#define axis2_description_servicegroup_get_param(srvgrp_desc, env, name) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->get_param(srvgrp_desc, env, name));
+		
+#define axis2_description_servicegroup_get_params(srvgrp_desc, env) \
+		(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->get_params(srvgrp_desc, env));
+		
+		
+#define axis2_description_servicegroup_is_param_locked(srvgrp_desc, env \
+		, param_name)(axis2_description_servicegroup_get_ops(srvgrp_desc \
+		, env)->is_param_locked(srvgrp_desc, env, param_name));
+		
+/**************************** End of function macros **************************/
+/**************************** Function pointers *******************************/
+
+/** Deallocate memory
+  * @return status code
+  */
+typedef axis2_status_t (*axis2_description_servicegroup_free_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env);
+
+/** Set name of the service group_member
+  * @param servicegroup_name
+  * @return status_code
+  */
+typedef axis2_status_t (*axis2_description_servicegroup_set_name_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, axis2_char_t *servicegroup_name);
+		
+/** get the service group name
+  * @return service group name
+  */
+typedef axis2_char_t *(*axis2_description_servicegroup_get_name_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env);
+
+/** Add a service to the serivce group
+  * @param service to be added
+  * @return status code
+  */
+typedef axis2_status_t (*axis2_description_servicegroup_add_service_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+	 	, axis2_description_service_t *service_desc);
+
+/** Get the service from service group_member
+  * @param service_name
+  * @return service description
+  */
+typedef axis2_description_service_t 
+		*(*axis2_description_servicegroup_get_service_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, const axis2_qname_t* service_name);
+
+typedef axis2_status_t (*axis2_description_servicegroup_remove_service_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, const axis2_qname_t *service_name);
+		
+typedef axis2_status_t (*axis2_description_servicegroup_add_param_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, axis2_description_param_t *param);
+		
+
+typedef axis2_description_param_t *(*axis2_description_servicegroup_get_param_t)(
+		axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, const axis2_char_t *name);
+		
+typedef axis2_hash_t *(*axis2_description_servicegroup_get_params_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env);
+		
+typedef axis2_bool_t (*axis2_description_servicegroup_is_param_locked_t)
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env
+		, const axis2_char_t *param_name);
+		
+/*************************** End of function pointers *************************/
+
+struct axis2_description_servicegroup_ops_s
+{
+	axis2_description_servicegroup_free_t free;
+	axis2_description_servicegroup_set_name_t set_name;
+	axis2_description_servicegroup_get_name_t get_name;
+	axis2_description_servicegroup_add_service_t add_service;
+	axis2_description_servicegroup_get_service_t get_service;
+	axis2_description_servicegroup_remove_service_t remove_service;
+	axis2_description_servicegroup_add_param_t add_param;
+	axis2_description_servicegroup_get_param_t get_param;
+	axis2_description_servicegroup_get_params_t get_params;
+	axis2_description_servicegroup_is_param_locked_t is_param_locked;
+};
+
+axis2_description_servicegroup_ops_t *axis2_description_servicegroup_get_ops 
+		(axis2_description_servicegroup_t *srvgrp_desc, axis2_env_t *env);
+
+axis2_description_servicegroup_t *axis2_description_servicegroup_create
+		(axis2_env_t *env);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif                          /* AXIS2_DESCRIPTION_SERVICEGROUP_H  */

Modified: webservices/axis2/trunk/c/modules/core/description/src/service_group.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/service_group.c?rev=330516&r1=330515&r2=330516&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/service_group.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/service_group.c Thu Nov  3 01:32:44 2005
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
  
-#include <axis2_description_servicegroup.h>
+#include <axis2_description_service_group.h>
 
 /** @struct axis2_description_servicegroup_s
   * @brief DESCRIPTION servicegroup