From 8ed403e3093c3e04128bcac51d17cb8fa9b52d1f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 8 Aug 2008 17:35:42 +0000 Subject: Tidy logging and lose stdout hacks for _info. --- tmux.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 6d8f9647..c2d5c0c7 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.180 2008-08-07 20:20:52 nicm Exp $ */ +/* $Id: tmux.h,v 1.181 2008-08-08 17:35:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1295,10 +1295,13 @@ int buffer_poll(struct pollfd *, struct buffer *, struct buffer *); void buffer_flush(int, struct buffer *n, struct buffer *); /* log.c */ -void log_open(FILE *, int, int); +#define LOG_FACILITY LOG_DAEMON +void log_open_syslog(int); +void log_open_tty(int); +void log_open_file(int, const char *); void log_close(void); -void log_vwrite(FILE *, int, const char *, va_list); -void log_write(FILE *, int, const char *, ...); +void log_vwrite(int, const char *, va_list); +void log_write(int, const char *, ...); void printflike1 log_warn(const char *, ...); void printflike1 log_warnx(const char *, ...); void printflike1 log_info(const char *, ...); -- cgit