blob: 67a59088d709de5544d366047e0d6ce4fac1d6ca [file] [log] [blame]
Sylvain Munaut12ba7782014-06-16 10:13:40 +02001#pragma once
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +02002
Neels Hofmeyr3d8b47f2018-03-05 15:46:38 +01003#include <osmocom/core/defs.h>
4
Vadim Yanitskiyf36b7622020-10-23 21:05:07 +07005struct log_info;
6struct log_target;
7
Harald Welteba6988b2011-08-17 12:46:48 +02008/*!
9 * \file application.h
Neels Hofmeyr87e45502017-06-20 00:17:59 +020010 * Routines for helping with the osmocom application setup.
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020011 */
12
Neels Hofmeyr87e45502017-06-20 00:17:59 +020013/*! the default logging target, logging to stderr */
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020014extern struct log_target *osmo_stderr_target;
15
16void osmo_init_ignore_signals(void);
Neels Hofmeyr3d8b47f2018-03-05 15:46:38 +010017int osmo_init_logging(const struct log_info *)
18 OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx");
19int osmo_init_logging2(void *ctx, const struct log_info *log_info);
Holger Hans Peter Freytherba01fa42011-05-12 13:46:33 +020020
Harald Welte32e1f232011-06-26 13:07:18 +020021int osmo_daemonize(void);