axutil_property.h

00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXUTIL_PROPERTY_H
00020 #define AXUTIL_PROPERTY_H
00021 
00022 #include <axutil_utils_defines.h>
00023 #include <axutil_error.h>
00024 #include <axutil_env.h>
00025 #include <axutil_utils.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00038     typedef struct axutil_property axutil_property_t;
00039 
00044     AXIS2_EXTERN axutil_property_t *AXIS2_CALL
00045     axutil_property_create(
00046         const axutil_env_t * env);
00047 
00061     AXIS2_EXTERN axutil_property_t *AXIS2_CALL
00062 
00063     axutil_property_create_with_args(
00064         const axutil_env_t * env,
00065         axis2_scope_t scope,
00066         axis2_bool_t own_value,
00067         AXIS2_FREE_VOID_ARG free_func,
00068         void *value);
00069 
00070     AXIS2_EXTERN void AXIS2_CALL
00071     axutil_property_free(
00072         axutil_property_t * property,
00073         const axutil_env_t * env);
00074 
00078     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00079     axutil_property_set_scope(
00080         axutil_property_t * property,
00081         const axutil_env_t * env,
00082         axis2_scope_t scope);
00083 
00084     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00085     axutil_property_set_free_func(
00086         axutil_property_t * property,
00087         const axutil_env_t * env,
00088         AXIS2_FREE_VOID_ARG free_func);
00089 
00090     /*************************** Function macros **********************************/
00091     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00092     axutil_property_set_value(
00093         axutil_property_t * property,
00094         const axutil_env_t * env,
00095         void *value);
00096 
00097     AXIS2_EXTERN void *AXIS2_CALL
00098     axutil_property_get_value(
00099         axutil_property_t * property,
00100         const axutil_env_t * env);
00101 
00102     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00103     axutil_property_set_own_value(
00104         axutil_property_t * property,
00105         const axutil_env_t * env,
00106         axis2_bool_t own_value);
00107 
00108     AXIS2_EXTERN axutil_property_t *AXIS2_CALL
00109     axutil_property_clone(
00110         axutil_property_t * property,
00111         const axutil_env_t * env);
00112 
00113     /*************************** End of function macros ***************************/
00114 
00117 #ifdef __cplusplus
00118 }
00119 #endif
00120 
00121 #endif                          /* AXIS2_PROPERTY_H */

Generated on Sat May 3 10:44:35 2008 for Axis2/C by  doxygen 1.5.5