diff options
Diffstat (limited to 'src/eclat.h')
-rw-r--r-- | src/eclat.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/eclat.h b/src/eclat.h index b0d46ac..e588b57 100644 --- a/src/eclat.h +++ b/src/eclat.h | |||
@@ -30,39 +30,22 @@ | |||
30 | 30 | ||
31 | #define ECLAT_DEBCAT_MAIN 0 | 31 | #define ECLAT_DEBCAT_MAIN 0 |
32 | #define ECLAT_DEBCAT_CFGRAM 1 | 32 | #define ECLAT_DEBCAT_CFGRAM 1 |
33 | #define ECLAT_DEBCAT_CFLEX 2 | 33 | #define ECLAT_DEBCAT_CFLEX 2 |
34 | #define ECLAT_DEBCAT_CONF 3 | 34 | #define ECLAT_DEBCAT_CONF 3 |
35 | #define ECLAT_DEBCAT_CURL 4 | 35 | #define ECLAT_DEBCAT_CURL 4 |
36 | #define ECLAT_DEBCAT_MAX 5 | 36 | #define ECLAT_DEBCAT_FORLAN 5 |
37 | |||
38 | extern const char *program_name; | ||
39 | extern int debug_level[]; | ||
40 | 37 | ||
41 | extern char *endpoint; | 38 | extern char *endpoint; |
42 | extern int use_ssl; | 39 | extern int use_ssl; |
43 | extern int dry_run_mode; | 40 | extern int dry_run_mode; |
44 | extern char *region_name; | 41 | extern char *region_name; |
45 | extern char *access_file_name; | 42 | extern char *access_file_name; |
46 | extern char *access_key; | 43 | extern char *access_key; |
47 | extern char *secret_key; | 44 | extern char *secret_key; |
48 | 45 | ||
49 | #define debug(cat, lev, s) \ | ||
50 | do { \ | ||
51 | if (debug_level[cat] >= (lev)) \ | ||
52 | debug_printf s; \ | ||
53 | } while(0) | ||
54 | |||
55 | void die(int status, const char *fmt, ...); | ||
56 | void vdiag(grecs_locus_t const *locus, const char *qual, const char *fmt, | ||
57 | va_list ap); | ||
58 | void diag(grecs_locus_t const *locus, const char *qual, const char *fmt, ...); | ||
59 | void err(const char *fmt, ...); | ||
60 | void warn(const char *fmt, ...); | ||
61 | void debug_printf(const char *fmt, ...); | ||
62 | |||
63 | typedef int (*config_finish_hook_t) (void*); | 46 | typedef int (*config_finish_hook_t) (void*); |
64 | 47 | ||
65 | void add_config_finish_hook(config_finish_hook_t fun, void *data); | 48 | void add_config_finish_hook(config_finish_hook_t fun, void *data); |
66 | 49 | ||
67 | void config_help(void); | 50 | void config_help(void); |
68 | void config_init(void); | 51 | void config_init(void); |