2 Copyright (C) 2003 Bob Ham <rah@bash.sh>
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 __jack_driver_interface_h__
21 #define __jack_driver_interface_h__
38 #define JACK_DRIVER_NAME_MAX 15
39 #define JACK_DRIVER_PARAM_NAME_MAX 15
40 #define JACK_DRIVER_PARAM_STRING_MAX 63
42 /** Driver parameter types */
45 JackDriverParamInt
= 1,
48 JackDriverParamString
,
50 } jack_driver_param_type_t
;
52 /** Driver parameter value */
58 char str
[JACK_DRIVER_PARAM_STRING_MAX
+ 1];
59 } jack_driver_param_value_t
;
62 /** A driver parameter descriptor */
64 char name
[JACK_DRIVER_NAME_MAX
+ 1]; /**< The parameter's name */
65 char character
; /**< The parameter's character (for getopt, etc) */
66 jack_driver_param_type_t type
; /**< The parameter's type */
67 jack_driver_param_value_t value
; /**< The parameter's (default) value */
68 char short_desc
[64]; /**< A short (~30 chars) description for the user */
69 char long_desc
[1024]; /**< A longer description for the user */
71 jack_driver_param_desc_t
;
73 /** A driver parameter */
76 jack_driver_param_value_t value
;
81 /** A struct for describing a jack driver */
83 char name
[JACK_DRIVER_NAME_MAX
+ 1]; /**< The driver's canonical name */
84 char file
[PATH_MAX
+ 1]; /**< The filename of the driver's shared object file */
85 uint32_t nparams
; /**< The number of parameters the driver has */
86 jack_driver_param_desc_t
* params
; /**< An array of parameter descriptors */
95 #endif /* __jack_driver_interface_h__ */