blob: 5d575c4b5dbe403e65d77a004b5c9999e624903b [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
Harald Weltea523d142011-08-17 16:09:19 +020011/*! \brief 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/*! @} */