videohubctrl can be used to control Blackmagic Design Videohub SDI router device over the network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

util.h 679B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * === Utility functions ===
  3. *
  4. * Blackmagic Design Videohub control application
  5. * Copyright (C) 2014 Unix Solutions Ltd.
  6. * Written by Georgi Chorbadzhiyski
  7. *
  8. * Released under MIT license.
  9. * See LICENSE-MIT.txt for license terms.
  10. *
  11. */
  12. #ifndef _UTIL_H
  13. #define _UTIL_H
  14. #include <stdbool.h>
  15. #include <inttypes.h>
  16. #include <sys/time.h>
  17. void die(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
  18. void *xmalloc(size_t size);
  19. void *xzalloc(size_t size);
  20. void *xcalloc(size_t nmemb, size_t size);
  21. void *xrealloc(void *ptr, size_t size);
  22. char *xstrdup(const char *s);
  23. char *xstrndup(const char *s, size_t n);
  24. bool streq(const char *s1, const char *s2);
  25. #endif