Cleanup copyrights and attributions, and move Jean-Baptiste's services to a new kdenl...
[melted] / src / modules / jackrack / plugin_mgr.h
1 /*
2 * JACK Rack
3 *
4 * Original:
5 * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
6 *
7 * Modification for MLT:
8 * Copyright (C) 2004 Ushodaya Enterprises Limited
9 * Author: Dan Dennedy <dan@dennedy.org>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25
26 #ifndef __JR_PLUGIN_MANAGER_H__
27 #define __JR_PLUGIN_MANAGER_H__
28
29 #include <glib.h>
30
31 #include "plugin_desc.h"
32
33 typedef struct _plugin_mgr plugin_mgr_t;
34
35 struct _plugin_mgr
36 {
37 GSList * all_plugins;
38
39 GSList * plugins;
40 unsigned long plugin_count;
41 };
42
43 struct _ui;
44
45 plugin_mgr_t * plugin_mgr_new ();
46 void plugin_mgr_destroy (plugin_mgr_t * plugin_mgr);
47
48 void plugin_mgr_set_plugins (plugin_mgr_t * plugin_mgr, unsigned long rack_channels);
49
50 plugin_desc_t * plugin_mgr_get_desc (plugin_mgr_t * plugin_mgr, unsigned long id);
51 plugin_desc_t * plugin_mgr_get_any_desc (plugin_mgr_t * plugin_mgr, unsigned long id);
52
53 #endif /* __JR_PLUGIN_MANAGER_H__ */