Scroll to navigation

LIBKYCONF(3) Library Functions Manual LIBKYCONF(3)

NAME

libkyconf - KYSDK配置文件处理库,支持标准格式、XML(未实现)、JSON(未实现)的配置文件处理,包括配置文件的读与写操作

SYNOPSIS

#include <libkyconf.h>

Functions


int kdk_conf_init (const char *confpath)
初始化配置文件 void kdk_conf_destroy (int id)
销毁指定的配置文件句柄 int kdk_conf_reload (int id)
重新载入配置文件 const char * kdk_conf_get_value (int id, const char *group, const char *key)
获取指定配置项的值 char **const kdk_conf_list_key (int id, const char *group)
列举id对应配置文件的指定Group下的key值,结尾以NULL指针表示 char **const kdk_conf_list_group (int id)
列举id对应配置文件的所有Group,结尾以NULL指针表示 void kdk_config_freeall (char **ptr)
用于回收字符串列表

Detailed Description

KYSDK配置文件处理库,支持标准格式、XML(未实现)、JSON(未实现)的配置文件处理,包括配置文件的读与写操作

CONFORMING TO

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_conf_init(), kdk_conf_destroy(), kdk_conf_reload(), kdk_conf_get_value(), kdk_conf_list_key(), kdk_conf_list_group() and kdk_config_freeall().

SEE ALSO

kdk_conf_init(3), kdk_conf_destroy(3), kdk_conf_reload(3), kdk_conf_get_value(3), kdk_conf_list_key(3), kdk_conf_list_group(3) and kdk_config_freeall(3).

Author

Generated automatically by Doxygen for libkyconf.h from the source code.

Fri Sep 22 2023 My Project