19#include "hitls_build.h"
30#define BSL_CONF_LINE_SIZE 513
31#define BSL_CONF_SEC_SIZE 510
33typedef struct BslConfDefaultKeyValue {
40typedef struct BslConfDefaultSection {
41 BslList *keyValueList;
54typedef BslList *(*BslConfCreate)(void);
55typedef void (*BslConfDestroy)(
BslList *sectionList);
56typedef int32_t (*BslConfLoad)(
BslList *sectionList,
const char *file);
57typedef int32_t (*BslConfLoadUio)(
BslList *sectionList,
BSL_UIO *uio);
58typedef int32_t (*BslConfDump)(
BslList *sectionList,
const char *file);
59typedef int32_t (*BslConfDumpUio)(
BslList *sectionList,
BSL_UIO *uio);
60typedef BslList *(*BslConfGetSection)(
BslList *sectionList,
const char *section);
61typedef int32_t (*BslConfGetString)(
BslList *sectionList,
const char *section,
const char *key,
62 char *string, uint32_t *strLen);
63typedef int32_t (*BslConfGetNumber)(
BslList *sectionList,
const char *section,
const char *key,
long int *num);
64typedef char **(*BslConfGetSectionNames)(
BslList *sectionList, uint32_t *namesSize);
66typedef struct BSL_CONF_MethodStruct {
68 BslConfDestroy destroy;
70 BslConfLoadUio loadUio;
72 BslConfDumpUio dumpUio;
73 BslConfGetSection getSection;
74 BslConfGetString getString;
75 BslConfGetNumber getNumber;
76 BslConfGetSectionNames getSectionNames;
struct UIO_ControlBlock BSL_UIO
UIO module control structure
定义 bsl_uio.h:37