Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 1 | #pragma once |
Sylvain Munaut | ac3e61a | 2010-07-25 18:08:54 +0200 | [diff] [blame] | 2 | |
Harald Welte | a523d14 | 2011-08-17 16:09:19 +0200 | [diff] [blame] | 3 | /*! \addtogroup utils |
| 4 | * @{ |
| 5 | */ |
| 6 | |
| 7 | /*! \file panic.h */ |
| 8 | |
Sylvain Munaut | ac3e61a | 2010-07-25 18:08:54 +0200 | [diff] [blame] | 9 | #include <stdarg.h> |
| 10 | |
Harald Welte | a523d14 | 2011-08-17 16:09:19 +0200 | [diff] [blame] | 11 | /*! \brief panic handler callback function type */ |
Sylvain Munaut | ac3e61a | 2010-07-25 18:08:54 +0200 | [diff] [blame] | 12 | typedef void (*osmo_panic_handler_t)(const char *fmt, va_list args); |
| 13 | |
Pablo Neira Ayuso | 240f01c | 2011-04-26 03:07:46 +0200 | [diff] [blame] | 14 | extern void osmo_panic(const char *fmt, ...); |
| 15 | extern void osmo_set_panic_handler(osmo_panic_handler_t h); |
Sylvain Munaut | ac3e61a | 2010-07-25 18:08:54 +0200 | [diff] [blame] | 16 | |
Harald Welte | a523d14 | 2011-08-17 16:09:19 +0200 | [diff] [blame] | 17 | /*! @} */ |