/usr/include/log4c/buffer.h is in liblog4c-dev 1.2.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /* $Id$
*
* buffer.h
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef __log4c_buffer_h
#define __log4c_buffer_h
/**
* @file buffer.h
*
* @brief log4c buffer
*
**/
#include <log4c/defs.h>
#include <stddef.h>
__LOG4C_BEGIN_DECLS
/**
* @brief buffer object
*
* Attributes description:
*
* @li @c size current size of the buffer
* @li @c maxsize maximum size of the buffer. 0 means no limitation.
* @li @c data raw data
**/
typedef struct
{
size_t buf_size;
size_t buf_maxsize;
char* buf_data;
} log4c_buffer_t;
#define LOG4C_BUFFER_SIZE_DEFAULT 512
__LOG4C_END_DECLS
#endif
|