Go to the documentation of this file.
23 #ifndef __STUMPLESS_PARAM_H
24 # define __STUMPLESS_PARAM_H
37 #ifdef STUMPLESS_JOURNALD_TARGETS_SUPPORTED
125 # ifdef STUMPLESS_JOURNALD_TARGETS_SUPPORTED
129 # ifdef STUMPLESS_THREAD_SAFETY_SUPPORTED
struct stumpless_param * stumpless_set_param_name(struct stumpless_param *param, const char *name)
Sets the name of the given param.
size_t name_length
The number of characters in name (not including the NULL character).
Definition: param.h:107
char * name
The name of the parameter.
Definition: param.h:105
size_t(* stumpless_param_namer_func_t)(const struct stumpless_entry *entry, size_t element_index, size_t param_index, char *destination, size_t size)
Gets the name to use for the journald field corresponding to this param.
Definition: param.h:78
const char * stumpless_param_to_string(const struct stumpless_param *param)
Returns the name and the value from param as a formatted string.
stumpless_param_namer_func_t get_journald_name
Gets the name to use for the journald field corresponding to this param.
Definition: param.h:127
const char * stumpless_get_param_name(const struct stumpless_param *param)
Returns the name of the given param.
A parameter within a structured data element.
Definition: param.h:90
size_t value_length
The number of characters in value (not including the NULL character).
Definition: param.h:124
struct stumpless_param * stumpless_new_param(const char *name, const char *value)
Creates a new param with the given name and value.
void * mutex
A pointer to a mutex which protects all target fields.
Definition: param.h:134
char * value
The value may be any UTF-8 string.
Definition: param.h:122
const char * stumpless_get_param_value(const struct stumpless_param *param)
Returns the value of the given param.
struct stumpless_param * stumpless_set_param_value(struct stumpless_param *param, const char *value)
Sets the value of the given param.
void stumpless_destroy_param(const struct stumpless_param *param)
Destroys a param, freeing any allocated memory.
struct stumpless_param * stumpless_copy_param(const struct stumpless_param *param)
Creates a copy of a param.
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
Definition: config.h:31
A log entry.
Definition: entry.h:63