chiark / gitweb /
Change James's email address
[sympathy.git] / src / log.h
1 /* 
2  * log.h:
3  *
4  * Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
5  * All rights reserved.
6  *
7  */
8
9 /* 
10  * $Id: log.h,v 1.7 2010/07/27 14:49:35 james Exp $
11  */
12
13 /* 
14  * $Log: log.h,v $
15  * Revision 1.7  2010/07/27 14:49:35  james
16  * add support for byte logging
17  *
18  * Revision 1.6  2008/03/10 11:49:33  james
19  * *** empty log message ***
20  *
21  * Revision 1.5  2008/03/07 12:37:04  james
22  * *** empty log message ***
23  *
24  * Revision 1.4  2008/03/03 06:04:42  james
25  * *** empty log message ***
26  *
27  * Revision 1.3  2008/03/02 10:37:56  james
28  * *** empty log message ***
29  *
30  * Revision 1.2  2008/02/23 11:48:37  james
31  * *** empty log message ***
32  *
33  * Revision 1.1  2008/02/14 12:14:50  james
34  * *** empty log message ***
35  *
36  */
37
38 #ifndef __LOG_H__
39 #define __LOG_H__
40
41 #define LOG_SIGNATURE \
42         struct Log_struct *next; \
43         void (*log)(struct Log_struct *,char *); \
44         void (*log_bytes)(struct Log_struct *,void *,int); \
45         void (*sighup)(struct Log_struct *); \
46         void (*close)(struct Log_struct *)
47
48 typedef struct Log_struct {
49   LOG_SIGNATURE;
50 } Log;
51
52
53 #endif /* __LOG_H__ */