| 1 | // Copyright 2007 - 2021, Alan Antonuk and the rabbitmq-c contributors. |
| 2 | // SPDX-License-Identifier: mit |
| 3 | |
| 4 | #ifndef librabbitmq_examples_utils_h |
| 5 | #define librabbitmq_examples_utils_h |
| 6 | |
| 7 | void die(const char *fmt, ...); |
| 8 | extern void die_on_error(int x, char const *context); |
| 9 | extern void die_on_amqp_error(amqp_rpc_reply_t x, char const *context); |
| 10 | |
| 11 | extern void amqp_dump(void const *buffer, size_t len); |
| 12 | |
| 13 | extern uint64_t now_microseconds(void); |
| 14 | extern void microsleep(int usec); |
| 15 | |
| 16 | #endif |