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