stumpless  2.1.0
journald_supported.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0 */
2 
3 /*
4  * Copyright 2021 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 
24 #ifndef __STUMPLESS_CONFIG_JOURNALD_SUPPORTED_H
25 # define __STUMPLESS_CONFIG_JOURNALD_SUPPORTED_H
26 
27 # include <stumpless/element.h>
28 # include <stumpless/param.h>
29 
30 # ifdef __cplusplus
31 extern "C" {
32 # endif
33 
60 
87 
113 struct stumpless_element *
116 
142 struct stumpless_param *
145 
146 # ifdef __cplusplus
147 } /* extern "C" */
148 # endif
149 #endif /* __STUMPLESS_CONFIG_JOURNALD_SUPPORTED_H */
stumpless_get_param_journald_namer
stumpless_param_namer_func_t stumpless_get_param_journald_namer(const struct stumpless_param *param)
Gets the function used to derive the name of the field for this param when logging to journald target...
stumpless_element_namer_func_t
size_t(* stumpless_element_namer_func_t)(const struct stumpless_entry *entry, size_t element_index, char *destination, size_t size)
Gets the name to use for the journald field corresponding to this element.
Definition: element.h:81
stumpless_param_namer_func_t
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
stumpless_set_element_journald_namer
struct stumpless_element * stumpless_set_element_journald_namer(struct stumpless_element *element, stumpless_element_namer_func_t namer)
Sets the function used to derive the name of the field for this element when logging to journald targ...
stumpless_set_param_journald_namer
struct stumpless_param * stumpless_set_param_journald_namer(struct stumpless_param *param, stumpless_param_namer_func_t namer)
Sets the function used to derive the name of the field for this param when logging to journald target...
stumpless_param
A parameter within a structured data element.
Definition: param.h:90
param.h
element.h
stumpless_get_element_journald_namer
stumpless_element_namer_func_t stumpless_get_element_journald_namer(const struct stumpless_element *element)
Gets the function used to derive the name of the field for this element when logging to journald targ...
stumpless_element
An element of structured data.
Definition: element.h:93