libosmocore  0.10.2
Osmocom core library
application.h
Go to the documentation of this file.
1 #pragma once
2 
9 struct log_info;
10 
12 struct log_target;
13 
15 extern struct log_target *osmo_stderr_target;
16 
17 void osmo_init_ignore_signals(void);
18 int osmo_init_logging(const struct log_info *);
19 
20 int osmo_daemonize(void);
int osmo_daemonize(void)
Turn the current process into a background daemon.
Definition: application.c:136
void osmo_init_ignore_signals(void)
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
Definition: application.c:91
int osmo_init_logging(const struct log_info *)
Initialize the osmocom logging framework.
Definition: application.c:113
struct log_target * osmo_stderr_target
the default logging target, logging to stderr
Definition: application.c:83
Logging configuration, passed to log_init.
Definition: logging.h:180
structure representing a logging target
Definition: logging.h:208