API参考
载入中...
搜索中...
未找到
bsl_conf.h
1/*
2 * This file is part of the openHiTLS project.
3 *
4 * openHiTLS is licensed under the Mulan PSL v2.
5 * You can use this software according to the terms and conditions of the Mulan PSL v2.
6 * You may obtain a copy of Mulan PSL v2 at:
7 *
8 * http://license.coscl.org.cn/MulanPSL2
9 *
10 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13 * See the Mulan PSL v2 for more details.
14 */
15#ifndef BSL_CONF_H
16#define BSL_CONF_H
17
18#include "hitls_build.h"
19#ifdef HITLS_BSL_CONF
20
21#include "bsl_conf_def.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27typedef struct BSL_CONF_Struct {
28 const BSL_CONF_Method *meth;
29 void *data;
30} BSL_CONF;
31
53const BSL_CONF_Method *BSL_CONF_DefaultMethod(void);
54
65BSL_CONF *BSL_CONF_New(const BSL_CONF_Method *meth);
66
74void BSL_CONF_Free(BSL_CONF *conf);
75
89int32_t BSL_CONF_LoadByUIO(BSL_CONF *conf, BSL_UIO *uio);
90
104int32_t BSL_CONF_Load(BSL_CONF *conf, const char *file);
105
117BslList *BSL_CONF_GetSection(const BSL_CONF *conf, const char *section);
118
135int32_t BSL_CONF_GetString(const BSL_CONF *conf, const char *section, const char *name, char *str, uint32_t *strLen);
136
152int32_t BSL_CONF_GetNumber(const BSL_CONF *conf, const char *section, const char *name, long *value);
153
167int32_t BSL_CONF_Dump(const BSL_CONF *conf, const char *file);
168
182int32_t BSL_CONF_DumpUio(const BSL_CONF *conf, BSL_UIO *uio);
183
198char **BSL_CONF_GetSectionNames(const BSL_CONF *conf, uint32_t *namesSize);
199
200#ifdef __cplusplus
201}
202#endif
203
204#endif /* HITLS_BSL_CONF */
205
206#endif /* BSL_CONF_H */
struct UIO_ControlBlock BSL_UIO
UIO module control structure
定义 bsl_uio.h:37
定义 bsl_list.h:49