43#ifndef __STUMPLESS_TARGET_BUFFER_H
44# define __STUMPLESS_TARGET_BUFFER_H
47# include <stumpless/config.h>
size_t stumpless_read_buffer(struct stumpless_target *target, char *buffer, size_t max_length)
Reads the next message from the provided buffer target and writes it into the given buffer.
struct stumpless_target * stumpless_open_buffer_target(const char *name, char *buffer, size_t size)
Creates a buffer target for the given buffer.
void stumpless_close_buffer_target(const struct stumpless_target *target)
Closes a buffer target.
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
定义 config.h:31
A target that log entries can be sent to.
定义 target.h:140
char * name
The name of this target.
定义 target.h:157
General types and functions for working with all targets.