blob: ecaeaa8a0aac2bea381b85807ba602d4f79500a0 [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
5 * \brief Routines for helping with the osmocom application setup.
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +02006 */
7
Harald Welteba6988b2011-08-17 12:46:48 +02008/*! \brief 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
11/*! \brief one instance of a logging target (file, stderr, ...) */
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020012struct log_target;
13
Harald Welteba6988b2011-08-17 12:46:48 +020014/*! \brief 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);