Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
13
14#ifndef CONFIG_H
15#define CONFIG_H
16
17#include <porter_type.h>
18
19#ifdef __cplusplus
20extern "C"
21{
22#endif /* __cplusplus */
23
24 extern int config_load_global(const char *config_path, PotrGlobalConfig *global);
25 extern int config_load_service(const char *config_path, int64_t service_id,
26 PotrServiceDef *def);
27 extern int config_list_service_ids(const char *config_path,
28 int64_t **ids_out, int *count_out);
29
30#ifdef __cplusplus
31}
32#endif /* __cplusplus */
33
34#endif /* CONFIG_H */
int config_list_service_ids(const char *config_path, int64_t **ids_out, int *count_out)
設定ファイルに登録されているすべてのサービス ID を列挙します。
Definition config.c:628
int config_load_service(const char *config_path, int64_t service_id, PotrServiceDef *def)
設定ファイルから指定サービスの定義を読み込みます。
Definition config.c:508
int config_load_global(const char *config_path, PotrGlobalConfig *global)
設定ファイルから [global] セクションを読み込みます。
Definition config.c:160
通信ライブラリの型定義ファイル。
グローバル設定。
サービス定義。