Crudebyte Logo
control.h
Go to the documentation of this file.
1 /* -*- Mode: C ; c-basic-offset: 4 -*- */
2 /*
3  JACK control API
4 
5  Copyright (C) 2008 Nedko Arnaudov
6  Copyright (C) 2008 GRAME
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; version 2 of the License.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
29 #ifndef JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED
30 #define JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED
31 
32 #include <jack/types.h>
33 #include <jack/jslist.h>
34 #include <jack/systemdeps.h>
35 #if !defined(sun) && !defined(__sun__)
36 #include <stdbool.h>
37 #endif
38 
40 typedef enum
41 {
48 
50 typedef enum
51 {
52  JackMaster = 1,
55 
57 #define JACK_PARAM_MAX (JackParamBool + 1)
58 
60 #define JACK_PARAM_STRING_MAX 127
61 
63 /* intentionally similar to jack_driver_param_value_t */
65 {
66  uint32_t ui;
67  int32_t i;
68  char c;
70  bool b;
71 };
72 
74 typedef struct jackctl_server jackctl_server_t;
75 
77 typedef struct jackctl_driver jackctl_driver_t;
78 
80 typedef struct jackctl_internal jackctl_internal_t;
81 
83 typedef struct jackctl_parameter jackctl_parameter_t;
84 
86 typedef struct jackctl_sigmask jackctl_sigmask_t;
87 
88 #ifdef __cplusplus
89 extern "C" {
90 #endif
91 #if 0
92 } /* Adjust editor indent */
93 #endif
94 
111  unsigned int flags);
112 
118 void
120  jackctl_sigmask_t * signals);
121 
134  bool (* on_device_acquire)(const char * device_name),
135  void (* on_device_release)(const char * device_name));
136 
142 void
144  jackctl_server_t * server);
145 
154 bool
156  jackctl_server_t * server,
157  jackctl_driver_t * driver);
158 
166 bool
168  jackctl_server_t * server);
169 
177 bool
179  jackctl_server_t * server);
180 
188 bool
190  jackctl_server_t * server);
191 
201 const JSList *
203  jackctl_server_t * server);
204 
214 const JSList *
216  jackctl_server_t * server);
217 
227 const JSList *
229  jackctl_server_t * server);
230 
240 bool
242  jackctl_server_t * server,
243  jackctl_internal_t * internal);
244 
254 bool
256  jackctl_server_t * server,
257  jackctl_internal_t * internal);
258 
269 bool
271  jackctl_driver_t * driver);
272 
283 bool
285  jackctl_driver_t * driver);
286 
295 bool
297  jackctl_driver_t * driver);
298 
299 
308 const char *
310  jackctl_driver_t * driver);
311 
322  jackctl_driver_t * driver);
323 
333 const JSList *
335  jackctl_driver_t * driver);
336 
346 int
348  jackctl_driver_t * driver,
349  int argc,
350  char* argv[]);
351 
360 const char *
362  jackctl_internal_t * internal);
363 
373 const JSList *
375  jackctl_internal_t * internal);
376 
385 const char *
387  jackctl_parameter_t * parameter);
388 
397 const char *
399  jackctl_parameter_t * parameter);
400 
409 const char *
411  jackctl_parameter_t * parameter);
412 
422  jackctl_parameter_t * parameter);
423 
431 char
433  jackctl_parameter_t * parameter);
434 
444 bool
446  jackctl_parameter_t * parameter);
447 
455 bool
457  jackctl_parameter_t * parameter);
458 
468  jackctl_parameter_t * parameter);
469 
478 bool
480  jackctl_parameter_t * parameter,
481  const union jackctl_parameter_value * value_ptr);
482 
492  jackctl_parameter_t * parameter);
493 
501 bool
503  jackctl_parameter_t * parameter);
504 
512 bool
514  jackctl_parameter_t * parameter);
515 
523 uint32_t
525  jackctl_parameter_t * parameter);
526 
537  jackctl_parameter_t * parameter,
538  uint32_t index);
539 
548 const char *
550  jackctl_parameter_t * parameter,
551  uint32_t index);
552 
560 void
562  jackctl_parameter_t * parameter,
563  union jackctl_parameter_value * min_ptr,
564  union jackctl_parameter_value * max_ptr);
565 
574 bool
576  jackctl_parameter_t * parameter);
577 
587 bool
589  jackctl_parameter_t * parameter);
590 
596 void
597 jack_error(
598  const char *format,
599  ...);
600 
606 void
607 jack_info(
608  const char *format,
609  ...);
610 
617 void
618 jack_log(
619  const char *format,
620  ...);
621 
622 /* @} */
623 
624 #if 0
625 { /* Adjust editor indent */
626 #endif
627 #ifdef __cplusplus
628 } /* extern "C" */
629 #endif
630 
631 #endif /* #ifndef JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED */
DE • EN
Copyright © MMXIII Crudebyte. All rights reserved.

twitter