#define HOSTINFOD_H
#include <apr_general.h>
+#include <apr_errno.h>
/* main.c */
extern const char *conf_file;
-extern const char *socket_dir;
+extern char *socket_dir;
extern char *guests_file;
-extern int socket_dir_set_on_cmdline;
-extern int debug;
-extern int debug_set_on_cmdline;
extern int verbose;
extern int verbose_set_on_cmdline;
extern int foreground;
extern int foreground_set_on_cmdline;
+extern int messages_to_stderr;
extern apr_pool_t *pool; /* pool for global memory allocation */
+/* error.c */
+extern void init_syslog (void);
+extern void error (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void perrorf (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void warning (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void pwarningf (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void debug (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void message (const char *fs, ...)
+ __attribute__((format (printf,1,2)));
+extern void paprerror (apr_status_t r, const char *fs, ...)
+ __attribute__((format (printf,2,3)));
+
/* configuration.c */
extern void read_main_conf_file (void);
+/* monitor_sockets.c */
+extern int sockets_inotify_fd;
+extern void monitor_socket_dir (void);
+
#endif /* HOSTINFOD_H */