Jack2  1.9.8
JackDriverLoader.h
1 /*
2 Copyright (C) 2001-2005 Paul Davis
3 Copyright (C) 2004-2008 Grame
4 
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.
9 
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.
14 
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.
18 
19 */
20 
21 #ifndef __JackDriverLoader__
22 #define __JackDriverLoader__
23 
24 #include "driver_interface.h"
25 #include "JackControlAPI.h"
26 #include "JackPlatformPlug.h"
27 #include "JackDriver.h"
28 #include "JackSystemDeps.h"
29 
30 typedef jack_driver_desc_t* (*JackDriverDescFunction) ();
31 typedef Jack::JackDriverClientInterface* (*driverInitialize) (Jack::JackLockedEngine*, Jack::JackSynchro*, const JSList*);
32 
33 class SERVER_EXPORT JackDriverInfo
34 {
35 
36  private:
37 
38  driverInitialize fInitialize;
39  DRIVER_HANDLE fHandle;
41 
42  public:
43 
44  JackDriverInfo():fInitialize(NULL),fHandle(NULL),fBackend(NULL)
45  {}
46  ~JackDriverInfo();
47 
49 
51  {
52  return fBackend;
53  }
54 
55 };
56 
57 jack_driver_desc_t* jack_find_driver_descriptor(JSList* drivers, const char* name);
58 
59 JSList* jack_drivers_load(JSList* drivers);
60 JSList* jack_internals_load(JSList* internals);
61 
62 #ifdef __cplusplus
63 extern "C"
64 {
65 #endif
66 
67 SERVER_EXPORT int jackctl_parse_driver_params(jackctl_driver * driver_ptr, int argc, char* argv[]);
68 SERVER_EXPORT void jack_free_driver_params(JSList * param_ptr);
69 SERVER_EXPORT void jack_print_driver_options(jack_driver_desc_t* desc, FILE* file);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif
76