added jackrack filter
[melted] / src / modules / jackrack / plugin_mgr.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_PLUGIN_MANAGER_H__
22 #define __JR_PLUGIN_MANAGER_H__
23
24 #include <glib.h>
25
26 #include "plugin_desc.h"
27
28 typedef struct _plugin_mgr plugin_mgr_t;
29
30 struct _plugin_mgr
31 {
32 GSList * all_plugins;
33
34 GSList * plugins;
35 unsigned long plugin_count;
36 };
37
38 struct _ui;
39
40 plugin_mgr_t * plugin_mgr_new (struct _ui * ui);
41 void plugin_mgr_destroy (plugin_mgr_t * plugin_mgr);
42
43 void plugin_mgr_set_plugins (plugin_mgr_t * plugin_mgr, unsigned long rack_channels);
44
45 plugin_desc_t * plugin_mgr_get_desc (plugin_mgr_t * plugin_mgr, unsigned long id);
46 plugin_desc_t * plugin_mgr_get_any_desc (plugin_mgr_t * plugin_mgr, unsigned long id);
47
48 #endif /* __JR_PLUGIN_MANAGER_H__ */