w2c_properties.h

00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017   
00018 #ifndef W2C_PROPERTIES_PARSER_H
00019 #define W2C_PROPERTIES_PARSER_H
00020 
00026 #include <stdio.h>
00027 #include <axis2_utils.h>
00028 #include <axis2_hash.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00041 typedef struct w2c_properties w2c_properties_t;
00042 typedef struct w2c_properties_ops w2c_properties_ops_t;
00043 
00044 AXIS2_DECLARE_DATA  struct w2c_properties_ops
00045 {
00054      axis2_status_t (AXIS2_CALL *
00055      free)(w2c_properties_t *properties,
00056           const axis2_env_t *env);
00057     
00063      axis2_hash_t* (AXIS2_CALL *
00064      get_hash)(w2c_properties_t *properties,
00065            const axis2_env_t *env);
00066 };
00067 
00068 AXIS2_DECLARE_DATA  struct w2c_properties
00069 {
00070      struct w2c_properties_ops *ops;
00071 };
00072 
00081 AXIS2_EXTERN w2c_properties_t* AXIS2_CALL
00082 w2c_properties_create( const axis2_env_t *env,
00083                     axis2_char_t *filename,
00084                     axis2_char_t seperator);
00085 
00086 /*************************** Function macros **********************************/
00087 
00088 #define W2C_PROPERTIES_FREE(properties, env) \
00089       ((properties)->ops->free (properties, env))
00090 
00091 #define W2C_PROPERTIES_GET_HASH(properties, env) \
00092       ((properties)->ops->get_hash(properties, env))
00093    
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 #endif /* W2C_PROPERTIES_PARSER_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1