aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/eclat.h')
-rw-r--r--src/eclat.h19
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
38extern const char *program_name;
39extern int debug_level[];
40 37
41extern char *endpoint; 38extern char *endpoint;
42extern int use_ssl; 39extern int use_ssl;
43extern int dry_run_mode; 40extern int dry_run_mode;
44extern char *region_name; 41extern char *region_name;
45extern char *access_file_name; 42extern char *access_file_name;
46extern char *access_key; 43extern char *access_key;
47extern char *secret_key; 44extern 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
55void die(int status, const char *fmt, ...);
56void vdiag(grecs_locus_t const *locus, const char *qual, const char *fmt,
57 va_list ap);
58void diag(grecs_locus_t const *locus, const char *qual, const char *fmt, ...);
59void err(const char *fmt, ...);
60void warn(const char *fmt, ...);
61void debug_printf(const char *fmt, ...);
62
63typedef int (*config_finish_hook_t) (void*); 46typedef int (*config_finish_hook_t) (void*);
64 47
65void add_config_finish_hook(config_finish_hook_t fun, void *data); 48void add_config_finish_hook(config_finish_hook_t fun, void *data);
66 49
67void config_help(void); 50void config_help(void);
68void config_init(void); 51void config_init(void);

Return to:

Send suggestions and report system problems to the System administrator.