blob: 266fa9bb8f6425a594e831319acf609e4cc4ba90 [file] [log] [blame]
Sylvain Munaut12ba7782014-06-16 10:13:40 +02001#pragma once
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +02002
Harald Welteba6988b2011-08-17 12:46:48 +02003/*!
4 * \file application.h
Neels Hofmeyr87e45502017-06-20 00:17:59 +02005 * Routines for helping with the osmocom application setup.
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +02006 */
7
Neels Hofmeyr87e45502017-06-20 00:17:59 +02008/*! information containing the available logging subsystems */
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +02009struct log_info;
Harald Welteba6988b2011-08-17 12:46:48 +020010
Neels Hofmeyr87e45502017-06-20 00:17:59 +020011/*! one instance of a logging target (file, stderr, ...) */
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020012struct log_target;
13
Neels Hofmeyr87e45502017-06-20 00:17:59 +020014/*! the default logging target, logging to stderr */
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020015extern struct log_target *osmo_stderr_target;
16
17void osmo_init_ignore_signals(void);
18int osmo_init_logging(const struct log_info *);
19
Harald Welte32e1f232011-06-26 13:07:18 +020020int osmo_daemonize(void);