2 Copyright (C) 2001-2005 Paul Davis
3 Copyright (C) 2004-2008 Grame
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __JackDriverLoader__
22 #define __JackDriverLoader__
24 #include "driver_interface.h"
25 #include "JackControlAPI.h"
26 #include "JackPlatformPlug.h"
27 #include "JackSystemDeps.h"
31 class JackDriverClientInterface
;
32 class JackLockedEngine
;
35 typedef jack_driver_desc_t
* (*JackDriverDescFunction
) ();
36 typedef Jack::JackDriverClientInterface
* (*driverInitialize
) (Jack::JackLockedEngine
*, Jack::JackSynchro
*, const JSList
*);
43 driverInitialize fInitialize
;
44 DRIVER_HANDLE fHandle
;
48 JackDriverInfo():fInitialize(NULL
),fHandle(NULL
)
53 UnloadDriverModule(fHandle
);
56 Jack::JackDriverClientInterface
* Open(jack_driver_desc_t
* driver_desc
, Jack::JackLockedEngine
*, Jack::JackSynchro
*, const JSList
*);
60 jack_driver_desc_t
* jack_find_driver_descriptor (JSList
* drivers
, const char * name
);
62 JSList
* jack_drivers_load (JSList
* drivers
);
63 JSList
* jack_internals_load (JSList
* internals
);
65 SERVER_EXPORT
int jackctl_parse_driver_params (jackctl_driver
* driver_ptr
, int argc
, char* argv
[]);
66 SERVER_EXPORT
void jack_free_driver_params(JSList
* param_ptr
);