libopm
0.1
|
#include "setup.h"
#include "malloc.h"
#include "config.h"
#include "inet.h"
#include "opm_error.h"
#include "opm_types.h"
#include "opm_common.h"
#include "list.h"
#include <string.h>
Functions | |
OPM_CONFIG_T * | libopm_config_create () |
void | libopm_config_free (OPM_CONFIG_T *config) |
OPM_ERR_T | libopm_config_set (OPM_CONFIG_T *config, int key, void *value) |
int | libopm_config_gettype (int key) |
void * | libopm_config (OPM_CONFIG_T *config, int key) |
OPM_CONFIG_T* libopm_config_create | ( | void | ) |
References libopm_config_gettype(), libopm_list_create(), MyMalloc, OPM_TYPE_ADDRESS, OPM_TYPE_INT, OPM_TYPE_STRING, OPM_TYPE_STRINGLIST, and _OPM_CONFIG::vars.
Referenced by opm_create().
void libopm_config_free | ( | OPM_CONFIG_T * | config | ) |
References _libopm_node::data, _libopm_list::head, libopm_config_gettype(), LIST_FOREACH_SAFE, MyFree, OPM_TYPE_STRINGLIST, and _OPM_CONFIG::vars.
Referenced by opm_free().
OPM_ERR_T libopm_config_set | ( | OPM_CONFIG_T * | config, |
int | key, | ||
void * | value | ||
) |
References inet_pton(), libopm_config_gettype(), libopm_list_add(), libopm_node_create(), MyFree, OPM_ERR_BADKEY, OPM_ERR_BADVALUE, OPM_SUCCESS, OPM_TYPE_ADDRESS, OPM_TYPE_INT, OPM_TYPE_STRING, OPM_TYPE_STRINGLIST, and _OPM_CONFIG::vars.
Referenced by opm_config().
int libopm_config_gettype | ( | int | key | ) |
References _opm_config_hash::type.
Referenced by libopm_config_create(), libopm_config_free(), and libopm_config_set().
void* libopm_config | ( | OPM_CONFIG_T * | config, |
int | key | ||
) |