stumpless
2.1.0
target
stream.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: Apache-2.0 */
2
3
/*
4
* Copyright 2018-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
35
#ifndef __STUMPLESS_TARGET_STREAM_H
36
# define __STUMPLESS_TARGET_STREAM_H
37
38
# include <stdio.h>
39
# include <
stumpless/config.h
>
40
# include <
stumpless/target.h
>
41
42
# ifdef __cplusplus
43
extern
"C"
{
44
# endif
45
69
STUMPLESS_PUBLIC_FUNCTION
70
void
71
stumpless_close_stream_target
(
const
struct
stumpless_target
*target );
72
94
STUMPLESS_PUBLIC_FUNCTION
95
struct
stumpless_target
*
96
stumpless_open_stderr_target
(
const
char
*
name
);
97
119
STUMPLESS_PUBLIC_FUNCTION
120
struct
stumpless_target
*
121
stumpless_open_stdout_target
(
const
char
*
name
);
122
153
STUMPLESS_PUBLIC_FUNCTION
154
struct
stumpless_target
*
155
stumpless_open_stream_target
(
const
char
*
name
, FILE *stream );
156
157
# ifdef __cplusplus
158
}
/* extern "C" */
159
# endif
160
#endif
/* __STUMPLESS_TARGET_STREAM_H */
stumpless_target::name
char * name
The name of this target.
Definition:
target.h:153
stumpless_target
A target that log entries can be sent to.
Definition:
target.h:136
stumpless_close_stream_target
void stumpless_close_stream_target(const struct stumpless_target *target)
Closes a stream target.
target.h
STUMPLESS_PUBLIC_FUNCTION
#define STUMPLESS_PUBLIC_FUNCTION
Marks functions that are provided for use by the library.
Definition:
config.h:31
config.h
stumpless_open_stream_target
struct stumpless_target * stumpless_open_stream_target(const char *name, FILE *stream)
Opens a stream target for the given stream.
stumpless_open_stderr_target
struct stumpless_target * stumpless_open_stderr_target(const char *name)
Opens a stream target for the stderr stream.
stumpless_open_stdout_target
struct stumpless_target * stumpless_open_stdout_target(const char *name)
Opens a stream target for the stdout stream.
Generated on Sat Nov 12 2022 15:56:22 for stumpless by
1.8.19