00001 /* $Id$ 00002 * 00003 * buffer.h 00004 * 00005 * See the COPYING file for the terms of usage and distribution. 00006 */ 00007 00008 #ifndef __log4c_buffer_h 00009 #define __log4c_buffer_h 00010 00018 #include <log4c/defs.h> 00019 #include <stddef.h> 00020 00021 __LOG4C_BEGIN_DECLS 00022 00032 typedef struct 00033 { 00034 size_t buf_size; 00035 size_t buf_maxsize; 00036 char* buf_data; 00037 00038 } log4c_buffer_t; 00039 00040 #define LOG4C_BUFFER_SIZE_DEFAULT 512 00041 00042 00043 __LOG4C_END_DECLS 00044 00045 #endif