stumpless 2.2.0
Loading...
Searching...
No Matches
journald.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2
3/*
4 * Copyright 2021-2022 Joel E. Anderson
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
45#ifndef __STUMPLESS_TARGET_JOURNALD_H
46# define __STUMPLESS_TARGET_JOURNALD_H
47
48# include <stddef.h>
49# include <stumpless/config.h>
50# include <stumpless/entry.h>
51# include <stumpless/target.h>
52
53# ifdef __cplusplus
54extern "C" {
55# endif
56
77void
79
117size_t
119 size_t element_index,
120 char *destination,
121 size_t size );
122
165size_t
167 size_t element_index,
168 size_t param_index,
169 char *destination,
170 size_t size );
171
196struct stumpless_target *
198
199# ifdef __cplusplus
200} /* extern "C" */
201# endif
202#endif /* __STUMPLESS_TARGET_JOURNALD_H */
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
Definition config.h:31
Types and functions for creating and modifying entries.
STUMPLESS_PUBLIC_FUNCTION size_t stumpless_flatten_param_name(const struct stumpless_entry *entry, size_t element_index, size_t param_index, char *destination, size_t size)
Creates a name for the param by combining the element and param name.
STUMPLESS_PUBLIC_FUNCTION size_t stumpless_flatten_element_name(const struct stumpless_entry *entry, size_t element_index, char *destination, size_t size)
Creates a journald-compliant name for the element.
STUMPLESS_PUBLIC_FUNCTION struct stumpless_target * stumpless_open_journald_target(const char *name)
Opens a journald target.
STUMPLESS_PUBLIC_FUNCTION void stumpless_close_journald_target(const struct stumpless_target *target)
Closes a journald target.
A log entry.
Definition entry.h:60
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.