Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 1 | #pragma once |
Holger Hans Peter Freyther | ba01fa4 | 2011-05-12 13:46:33 +0200 | [diff] [blame] | 2 | |
Harald Welte | ba6988b | 2011-08-17 12:46:48 +0200 | [diff] [blame] | 3 | /*! |
| 4 | * \file application.h |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 5 | * Routines for helping with the osmocom application setup. |
Holger Hans Peter Freyther | ba01fa4 | 2011-05-12 13:46:33 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 8 | /*! information containing the available logging subsystems */ |
Holger Hans Peter Freyther | ba01fa4 | 2011-05-12 13:46:33 +0200 | [diff] [blame] | 9 | struct log_info; |
Harald Welte | ba6988b | 2011-08-17 12:46:48 +0200 | [diff] [blame] | 10 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 11 | /*! one instance of a logging target (file, stderr, ...) */ |
Holger Hans Peter Freyther | ba01fa4 | 2011-05-12 13:46:33 +0200 | [diff] [blame] | 12 | struct log_target; |
| 13 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 14 | /*! the default logging target, logging to stderr */ |
Holger Hans Peter Freyther | ba01fa4 | 2011-05-12 13:46:33 +0200 | [diff] [blame] | 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 | |
Harald Welte | 32e1f23 | 2011-06-26 13:07:18 +0200 | [diff] [blame] | 20 | int osmo_daemonize(void); |