libosmocore  1.9.0.20-4ca0f.202310312026
Osmocom core library
application.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <osmocom/core/defs.h>
4 
5 struct log_info;
6 struct log_target;
7 
14 extern struct log_target *osmo_stderr_target;
15 
16 void osmo_init_ignore_signals(void);
17 int osmo_init_logging(const struct log_info *)
18  OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx");
19 int osmo_init_logging2(void *ctx, const struct log_info *log_info);
20 
21 int osmo_daemonize(void);
struct log_target * osmo_stderr_target
the default logging target, logging to stderr
Definition: application.c:81
void osmo_init_ignore_signals(void)
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
Definition: application.c:89
int osmo_init_logging2(void *ctx, const struct log_info *log_info)
Definition: application.c:116
int osmo_init_logging(const struct log_info *) OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx")
Initialize the osmocom logging framework.
Definition: application.c:111
int osmo_daemonize(void)
Turn the current process into a background daemon.
Definition: application.c:139
General definitions that are meant to be included from header files.
#define OSMO_DEPRECATED(text)
Set the deprecated attribute with a message.
Definition: defs.h:41
Logging configuration, passed to log_init.
Definition: logging.h:258
structure representing a logging target
Definition: logging.h:300