blob: 2bb4240b2971d39d8369563621c1e1f058e861c3 [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 * @{
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02005 * \file panic.h */
Harald Weltea523d142011-08-17 16:09:19 +02006
Sylvain Munautac3e61a2010-07-25 18:08:54 +02007#include <stdarg.h>
8
Neels Hofmeyr87e45502017-06-20 00:17:59 +02009/*! panic handler callback function type */
Sylvain Munautac3e61a2010-07-25 18:08:54 +020010typedef void (*osmo_panic_handler_t)(const char *fmt, va_list args);
11
Pablo Neira Ayuso240f01c2011-04-26 03:07:46 +020012extern void osmo_panic(const char *fmt, ...);
13extern void osmo_set_panic_handler(osmo_panic_handler_t h);
Sylvain Munautac3e61a2010-07-25 18:08:54 +020014
Harald Weltea523d142011-08-17 16:09:19 +020015/*! @} */