summaryrefslogtreecommitdiff
path: root/util.h
blob: f45105579aaa573213043dec9361bcd00b391d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _UTIL_H
#define _UTIL_H

#warning Don't use lib/util.h

/* Bridge from GPG style to lsh style */
#include "lsh_types.h"

/* Report a bug (TODO: do what afterwards? ) */
void log_bug(const char *fmt, ... ) PRINTF_STYLE(1,2);

/* Report an error */
void log_error(const char *fmt, ... ) PRINTF_STYLE(1,2);

/* Report a fatal error and die */
void log_fatal(const char *fmt, ... ) PRINTF_STYLE(1,2) NORETURN;

#ifndef G10ERR_WEAK_KEY
  #define G10ERR_WEAK_KEY 43
#elif G10ERR_WEAK_KEY != 43
  #error G10ERR_WEAK_KEY is defined to a wrong value.
#endif

#endif /* _UTIL_H */