stumpless 2.2.0
载入中...
搜索中...
未找到
journald_supported.h
浏览该文件的文档.
1/* SPDX-License-Identifier: Apache-2.0 */
2
3/*
4 * Copyright 2021-2023 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/config.h>
28# include <stumpless/element.h>
29# include <stumpless/param.h>
30
31# ifdef __cplusplus
32extern "C" {
33# endif
34
62
90
117struct stumpless_element *
120
147struct stumpless_param *
150
151# ifdef __cplusplus
152} /* extern "C" */
153# endif
154#endif /* __STUMPLESS_CONFIG_JOURNALD_SUPPORTED_H */
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
定义 config.h:31
Types and functions for creating and modifying elements.
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.
定义 element.h:81
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 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...
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...
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...
Types and functions for creating and modifying params.
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.
定义 param.h:81
An element of structured data.
定义 element.h:93
A parameter within a structured data element.
定义 param.h:93