syslog() is a blocking call on eglibc. as procd provides the actual syslog, weneed...
[project/procd.git] / syslog.h
index 5e7ab43..fd78363 100644 (file)
--- a/syslog.h
+++ b/syslog.h
@@ -18,6 +18,7 @@
 enum {
        SOURCE_KLOG = 0,
        SOURCE_SYSLOG = 1,
+       SOURCE_INTERNAL = 2,
        SOURCE_ANY = 0xff,
 };
 
@@ -31,11 +32,12 @@ struct log_head {
 };
 
 void log_init(void);
+void log_shutdown(void);
 
 typedef void (*log_list_cb)(struct log_head *h);
 struct log_head* log_list(int count, struct log_head *h);
 int log_buffer_init(int size);
-int log_buffer_size(void);
 void log_add(char *buf, int size, int source);
+void log_printf(char *fmt, ...);
 
 #endif