blob: 92c557fe131689109a794ba4dd0151e543818d9e [file] [log] [blame]
Sylvain Munaut12ba7782014-06-16 10:13:40 +02001#pragma once
Sylvain Munautac3e61a2010-07-25 18:08:54 +02002
Harald Weltea523d142011-08-17 16:09:19 +02003/*! \addtogroup utils
4 * @{
5 */
6
7/*! \file panic.h */
8
Sylvain Munautac3e61a2010-07-25 18:08:54 +02009#include <stdarg.h>
10
Neels Hofmeyr87e45502017-06-20 00:17:59 +020011/*! panic handler callback function type */
Sylvain Munautac3e61a2010-07-25 18:08:54 +020012typedef void (*osmo_panic_handler_t)(const char *fmt, va_list args);
13
Pablo Neira Ayuso240f01c2011-04-26 03:07:46 +020014extern void osmo_panic(const char *fmt, ...);
15extern void osmo_set_panic_handler(osmo_panic_handler_t h);
Sylvain Munautac3e61a2010-07-25 18:08:54 +020016
Harald Weltea523d142011-08-17 16:09:19 +020017/*! @} */