It compiles
[jack2.git] / posix / JackSystemDeps_os.h
blob18ea74c2595e3cc3d0ec0bdb5424cccd5bfbb5ab
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 Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 #ifndef UINT32_MAX
29 #define UINT32_MAX 4294967295U
30 #endif
32 #define DRIVER_HANDLE void*
33 #define LoadDriverModule(name) dlopen((name), RTLD_NOW | RTLD_GLOBAL)
34 #define UnloadDriverModule(handle) dlclose((handle))
35 #define GetDriverProc(handle, name) dlsym((handle), (name))
37 #define JACK_HANDLE void*
38 #define LoadJackModule(name) dlopen((name), RTLD_NOW | RTLD_LOCAL);
39 #define UnloadJackModule(handle) dlclose((handle));
40 #define GetJackProc(handle, name) dlsym((handle), (name));
42 #define JACK_DEBUG (getenv("JACK_CLIENT_DEBUG") && strcmp(getenv("JACK_CLIENT_DEBUG"), "on") == 0)
44 #endif