Cleanup JackCoreAudioAdapter.
[jack2.git] / posix / JackSystemDeps_os.h
blobcbddb0b1a4500cec6919a099db724355d75ea7c6
1 /*
2 Copyright (C) 2004-2006 Grame
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __JackSystemDeps_POSIX__
21 #define __JackSystemDeps_POSIX__
23 #include <inttypes.h>
24 #include <sys/types.h>
25 #include <signal.h>
26 #include <dlfcn.h>
28 #define DRIVER_HANDLE void*
29 #define LoadDriverModule(name) dlopen((name), RTLD_NOW | RTLD_GLOBAL)
30 #define UnloadDriverModule(handle) dlclose((handle))
31 #define GetDriverProc(handle, name) dlsym((handle), (name))
33 #define JACK_HANDLE void*
34 #define LoadJackModule(name) dlopen((name), RTLD_NOW | RTLD_LOCAL);
35 #define UnloadJackModule(handle) dlclose((handle));
36 #define GetJackProc(handle, name) dlsym((handle), (name));
38 #define JACK_DEBUG (getenv("JACK_CLIENT_DEBUG") && strcmp(getenv("JACK_CLIENT_DEBUG"), "on") == 0)
40 #endif