summaryrefslogtreecommitdiff
path: root/sysdep/unix/unix.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-06 13:45:56 +0000
committerMartin Mares <mj@ucw.cz>1999-12-06 13:45:56 +0000
commita0c37b45e59f024fc24b65ffbaf2c9e0f1996938 (patch)
treeb20a91de7de7349266e4eb708c839f8ceb9d7a77 /sysdep/unix/unix.h
parent7c0cc76ed76100ef8492f13eeec1e061d52b9be0 (diff)
Logging is now configurable. You can define multiple log outputs (to both
files and syslog) and assign lists of message categories to each of them.
Diffstat (limited to 'sysdep/unix/unix.h')
-rw-r--r--sysdep/unix/unix.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h
index ab724d19..8dd72496 100644
--- a/sysdep/unix/unix.h
+++ b/sysdep/unix/unix.h
@@ -9,6 +9,8 @@
#ifndef _BIRD_UNIX_H_
#define _BIRD_UNIX_H_
+struct pool;
+
/* main.c */
void async_config(void);
@@ -38,9 +40,23 @@ void io_loop(void);
void fill_in_sockaddr(sockaddr *sa, ip_addr a, unsigned port);
void get_sockaddr(sockaddr *sa, ip_addr *a, unsigned *port);
int sk_open_unix(struct birdsock *s, char *name);
+void *tracked_fopen(struct pool *, char *name, char *mode);
/* krt.c bits */
void krt_io_init(void);
+/* log.c */
+
+void log_init(int debug);
+void log_init_debug(char *); /* Initialize debug dump to given file (NULL=stderr, ""=off) */
+void log_switch(struct list *);
+
+struct log_config {
+ node n;
+ unsigned int mask; /* Classes to log */
+ void *fh; /* FILE to log to, NULL=syslog */
+ int terminal_flag;
+};
+
#endif