application.h
Go to the documentation of this file.
#pragma once
struct log_info;
struct log_target;
extern struct log_target *osmo_stderr_target;
void osmo_init_ignore_signals(void);
int osmo_init_logging(const struct log_info *);
int osmo_daemonize(void);
osmo_daemonize
int osmo_daemonize(void)
Turn the current process into a background daemon.
Definition: application.c:120
osmo_init_ignore_signals
void osmo_init_ignore_signals(void)
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
Definition: application.c:81
osmo_init_logging
int osmo_init_logging(const struct log_info *)
Initialize the osmocom logging framework.
Definition: application.c:103
osmo_stderr_target
struct log_target * osmo_stderr_target
the default logging target, logging to stderr
Definition: application.c:73
log_info
Logging configuration, passed to log_init.
Definition: logging.h:112
log_target
structure representing a logging target
Definition: logging.h:139