added jackrack filter
[melted] / src / modules / jackrack / control_message.h
1 /*
2 * JACK Rack
3 *
4 * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef __JR_CONTROL_MESSAGE_H__
22 #define __JR_CONTROL_MESSAGE_H__
23
24 #include <glib.h>
25 #include <ladspa.h>
26
27 /** These are for messages between the gui and the process() callback */
28 typedef enum _ctrlmsg_type
29 {
30 CTRLMSG_ADD,
31 CTRLMSG_REMOVE,
32 CTRLMSG_QUIT,
33
34 } ctrlmsg_type_t;
35
36 typedef struct _ctrlmsg ctrlmsg_t;
37
38 struct _plugin;
39 struct _plugin_desc;
40
41 struct _ctrlmsg
42 {
43 ctrlmsg_type_t type;
44 union
45 {
46 struct
47 {
48 struct _plugin * plugin;
49 } add;
50
51 struct
52 {
53 struct _plugin * plugin;
54 } remove;
55
56 } data;
57
58 };
59
60 #endif /* __JR_CONTROL_MESSAGE_H__ */