39#ifndef __STUMPLESS_TARGET_CHAIN_H
40#define __STUMPLESS_TARGET_CHAIN_H
43#include <stumpless/config.h>
STUMPLESS_PUBLIC_FUNCTION struct stumpless_target * stumpless_new_chain(const char *name)
Creates a new target chain.
STUMPLESS_PUBLIC_FUNCTION void stumpless_close_chain_only(struct stumpless_target *chain)
Closes a chain target.
STUMPLESS_PUBLIC_FUNCTION size_t stumpless_get_chain_length(const struct stumpless_target *chain)
Gets the number of targets currently in a chain.
STUMPLESS_PUBLIC_FUNCTION struct stumpless_target * stumpless_add_target_to_chain(struct stumpless_target *chain, struct stumpless_target *target)
Adds a target to an existing chain target.
STUMPLESS_PUBLIC_FUNCTION void stumpless_close_chain_and_contents(struct stumpless_target *chain)
Closes a chain of targets.
#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.