Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vconf.h

00001 
00002 
00003 #ifndef VCONF_H
00004 #define VCONF_H
00005 
00006 #include <stdlib.h>
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif /* __cplusplus */
00011 
00012 #include "vhash.h"
00013 
00014 
00015 typedef struct vconf_s {
00016         const char * filename;
00017         vhash_t * options_hash;
00018         void *(VHASH_CDECL *malloc) (size_t);
00019         void (VHASH_CDECL *free) (void*);
00020 } vconf_t;
00021 
00022 
00023 vconf_t* new_vconf(
00024         void *(VHASH_CDECL *vconf_malloc) (size_t),
00025         void (VHASH_CDECL *vconf_free) (void *));
00026 
00027 void delete_vconf(
00028         vconf_t* vconf); 
00029 
00030 void vconf_clear_options(
00031         vconf_t* vconf);
00032 
00033 int vconf_read_file(
00034         vconf_t* vconf, 
00035         const char * filename);
00036 
00037 int vconf_write_file(
00038         vconf_t* vconf, 
00039         const char * filename);
00040 
00041 const char * vconf_get_filename(
00042         vconf_t* vconf);
00043 
00044 vhash_t * vconf_get_option_hash(
00045         vconf_t* vconf);
00046 
00047 const char * vconf_get_option(
00048         vconf_t* vconf, 
00049         const char * option);
00050 
00051 void vconf_set_option(
00052         vconf_t* vconf, 
00053         const char * option,
00054         const char * value);
00055 
00056 
00057 #ifdef __cplusplus
00058 } /* extern "C" */
00059 #endif /* __cplusplus */
00060 
00061 #endif /*VCONF_H*/
00062 
00063 

Generated on Tue May 17 12:06:00 2005 for Autodesk DWF 3D Toolkit by  doxygen 1.4.1