blob: fd5cf2082c564142a6cefe99165ef873a9cec3c8 [file] [log] [blame]
Sylvain Munautac3e61a2010-07-25 18:08:54 +02001#ifndef OSMOCORE_PANIC_H
2#define OSMOCORE_PANIC_H
3
Harald Weltea523d142011-08-17 16:09:19 +02004/*! \addtogroup utils
5 * @{
6 */
7
8/*! \file panic.h */
9
Sylvain Munautac3e61a2010-07-25 18:08:54 +020010#include <stdarg.h>
11
Harald Weltea523d142011-08-17 16:09:19 +020012/*! \brief panic handler callback function type */
Sylvain Munautac3e61a2010-07-25 18:08:54 +020013typedef void (*osmo_panic_handler_t)(const char *fmt, va_list args);
14
Pablo Neira Ayuso240f01c2011-04-26 03:07:46 +020015extern void osmo_panic(const char *fmt, ...);
16extern void osmo_set_panic_handler(osmo_panic_handler_t h);
Sylvain Munautac3e61a2010-07-25 18:08:54 +020017
Harald Weltea523d142011-08-17 16:09:19 +020018/*! @} */
19
20#endif /* OSMOCORE_PANIC_H */