43#ifndef __STUMPLESS_TARGET_BUFFER_H
44# define __STUMPLESS_TARGET_BUFFER_H
47# include <stumpless/config.h>
STUMPLESS_PUBLIC_FUNCTION 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.
STUMPLESS_PUBLIC_FUNCTION void stumpless_close_buffer_target(const struct stumpless_target *target)
Closes a buffer target.
STUMPLESS_PUBLIC_FUNCTION struct stumpless_target * stumpless_open_buffer_target(const char *name, char *buffer, size_t size)
Creates a buffer target for the given buffer.
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
Definition config.h:31
A target that log entries can be sent to.
Definition target.h:140
char * name
The name of this target.
Definition target.h:157
General types and functions for working with all targets.