stop & detach driver when exiting due to -T/--temporary flag
[jack.git] / jack / messagebuffer.h
blob93f876b6e3098ee634f72d1ff0f0ff5d679df725
1 /*
2 * messagebuffer.h -- realtime-safe message interface for jackd.
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 */
9 /*
10 * Copyright (C) 2004 Rui Nuno Capela, Steve Harris
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License as published by
14 * the Free Software Foundation; either version 2.1 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 #ifndef __jack_messagebuffer_h__
29 #define __jack_messagebuffer_h__
31 #define MESSAGE(fmt,args...) jack_messagebuffer_add(fmt , ##args)
32 #define VERBOSE(engine,fmt,args...) \
33 if ((engine)->verbose) \
34 jack_messagebuffer_add(fmt , ##args)
36 void jack_messagebuffer_init();
37 void jack_messagebuffer_exit();
39 void jack_messagebuffer_add(const char *fmt, ...);
41 #endif /* __jack_messagebuffer_h__ */