source: trunk/oscam-config.h@ 8450

Last change on this file since 8450 was 8450, checked in by gf, 9 years ago

readers: Free configured readers on exit.

Make valgrind a little bit happier.

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