source: trunk/oscam-config.h

Last change on this file was 11489, checked in by Gorgone Impertinence, 19 months ago

some cleanups for newcamd
and add script for git svn diff creation

File size: 2.5 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);
24void reload_readerdb(void);
25void reader_fixups_fn(void *var);
26
27void chk_sidtab(char *token, char *value, struct s_sidtab *sidtab);
28int32_t init_sidtab(void);
29void init_free_sidtab(void);
30void free_sidtab(struct s_sidtab *sidtab);
31int32_t write_services(void);
32
33int32_t chk_global_whitelist(ECM_REQUEST *er, uint32_t *line);
34void global_whitelist_read(void);
35struct ecmrl get_ratelimit(ECM_REQUEST *er); // get ratelimits for ecm request (if available)
36void ratelimit_read(void);
37int32_t init_provid(void);
38int32_t init_srvid(void);
39int32_t init_tierid(void);
40int32_t init_fakecws(void);
41void init_len4caid(void);
42
43#ifdef MODULE_SERIAL
44struct ecmtw get_twin(ECM_REQUEST *er); // get twin channel
45void twin_read(void);
46#endif
47
48/* Shared parser functions */
49void check_caidtab_fn(const char *token, char *value, void *setting, FILE *f);
50void caidvaluetab_fn(const char *token, char *value, void *setting, FILE *f);
51void cacheex_valuetab_fn(const char *token, char *value, void *setting, FILE *f);
52void cacheex_hitvaluetab_fn(const char *token, char *value, void *setting, FILE *f);
53void class_fn(const char *token, char *value, void *setting, FILE *f);
54void group_fn(const char *token, char *value, void *setting, FILE *f);
55void services_fn(const char *token, char *value, void *setting, FILE *f);
56void chk_ftab_fn(const char *token, char *value, void *setting, FILE *f);
57
58enum ftab_fn
59{
60 FTAB_ACCOUNT = 0x01,
61 FTAB_READER = 0x02,
62 FTAB_PROVID = 0x04,
63 FTAB_CHID = 0x08,
64 FTAB_FBPCAID = 0x10,
65 FTAB_LOCALCARDS = 0x20,
66 FTAB_IGNCHKSMCAID = 0x40,
67 FTAB_IGNCRCCEX4USERONLYFOR = 0x80,
68 FTAB_EMUAU = 0x100
69};
70
71void ftab_fn(const char *token, char *value, void *setting, long ftab_type, FILE *f);
72
73#endif
Note: See TracBrowser for help on using the repository browser.