libosmocore  0.9.6-10.20170220git32ee5af8.fc31
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:120
void osmo_init_ignore_signals(void)
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
Definition: application.c:81
int osmo_init_logging(const struct log_info *)
Initialize the osmocom logging framework.
Definition: application.c:103
struct log_target * osmo_stderr_target
the default logging target, logging to stderr
Definition: application.c:73
Logging configuration, passed to log_init.
Definition: logging.h:148
structure representing a logging target
Definition: logging.h:176