utils.h 477 B

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