jack1 codebase
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.

45 lines
1.6KB

  1. /*
  2. * messagebuffer.h -- realtime-safe message interface for jackd.
  3. *
  4. * This function is included in libjack so backend drivers can use
  5. * it, *not* for external client processes. The VERBOSE() and
  6. * MESSAGE() macros are realtime-safe.
  7. */
  8. /*
  9. * Copyright (C) 2004 Rui Nuno Capela, Steve Harris
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU Lesser General Public License as published by
  13. * the Free Software Foundation; either version 2.1 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Lesser General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Lesser General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24. *
  25. */
  26. #ifndef __jack_messagebuffer_h__
  27. #define __jack_messagebuffer_h__
  28. #define MESSAGE(fmt, args ...) jack_messagebuffer_add (fmt, ## args)
  29. #define VERBOSE(engine, fmt, args ...) \
  30. if ((engine)->verbose) \
  31. jack_messagebuffer_add (fmt, ## args)
  32. void jack_messagebuffer_init();
  33. void jack_messagebuffer_exit();
  34. void jack_message_buffer_thread_init(void (*cb)(void*), void*);
  35. void jack_messagebuffer_add(const char *fmt, ...);
  36. void jack_messagebuffer_thread_init(void (*cb)(void*), void* arg);
  37. #endif /* __jack_messagebuffer_h__ */