1 | #ifndef OSCAM_CONFIG_H_
|
---|
2 | #define OSCAM_CONFIG_H_
|
---|
3 |
|
---|
4 | char *get_config_filename(char *dest, size_t destlen, const char *filename);
|
---|
5 |
|
---|
6 | int32_t init_config(void);
|
---|
7 | void config_set(char *section, const char *token, char *value);
|
---|
8 | void config_free(void);
|
---|
9 | int32_t write_config(void);
|
---|
10 |
|
---|
11 | void chk_account(const char *token, char *value, struct s_auth *account);
|
---|
12 | void account_set_defaults(struct s_auth *auth);
|
---|
13 | int32_t init_free_userdb(struct s_auth *auth);
|
---|
14 | struct s_auth *init_userdb(void);
|
---|
15 | int32_t write_userdb(void);
|
---|
16 | void cs_accounts_chk(void);
|
---|
17 |
|
---|
18 | void chk_reader(char *token, char *value, struct s_reader *rdr);
|
---|
19 | void reader_set_defaults(struct s_reader *rdr);
|
---|
20 | int32_t init_readerdb(void);
|
---|
21 | void free_reader(struct s_reader *rdr);
|
---|
22 | int32_t write_server(void);
|
---|
23 |
|
---|
24 | void chk_sidtab(char *token, char *value, struct s_sidtab *sidtab);
|
---|
25 | int32_t init_sidtab(void);
|
---|
26 | void init_free_sidtab(void);
|
---|
27 | void free_sidtab(struct s_sidtab *sidtab);
|
---|
28 | int32_t write_services(void);
|
---|
29 |
|
---|
30 | int32_t chk_global_whitelist(ECM_REQUEST *er, uint32_t *line);
|
---|
31 | void global_whitelist_read(void);
|
---|
32 |
|
---|
33 | int32_t init_provid(void);
|
---|
34 | int32_t init_srvid(void);
|
---|
35 | int32_t init_tierid(void);
|
---|
36 | void init_len4caid(void);
|
---|
37 |
|
---|
38 | /* Shared parser functions */
|
---|
39 | void check_caidtab_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
40 | void cacheex_valuetab_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
41 | void cacheex_hitvaluetab_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
42 | void class_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
43 | void group_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
44 | void services_fn(const char *token, char *value, void *setting, FILE *f);
|
---|
45 |
|
---|
46 | enum ftab_fn {
|
---|
47 | FTAB_ACCOUNT = 0x01,
|
---|
48 | FTAB_READER = 0x02,
|
---|
49 | FTAB_PROVID = 0x04,
|
---|
50 | FTAB_CHID = 0x08,
|
---|
51 | };
|
---|
52 |
|
---|
53 | void ftab_fn(const char *token, char *value, void *setting, long ftab_type, FILE *f);
|
---|
54 |
|
---|
55 | #endif
|
---|