BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
bseplugin.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BSE_PLUGIN_H__
3 #define __BSE_PLUGIN_H__
4 
5 #include <bse/bseexports.hh>
6 
7 G_BEGIN_DECLS
8 
9 
10 /* --- BSE type macros --- */
11 #define BSE_TYPE_PLUGIN (BSE_TYPE_ID (BsePlugin))
12 #define BSE_PLUGIN(plugin) (G_TYPE_CHECK_INSTANCE_CAST ((plugin), BSE_TYPE_PLUGIN, BsePlugin))
13 #define BSE_PLUGIN_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_PLUGIN, BsePluginClass))
14 #define BSE_IS_PLUGIN(plugin) (G_TYPE_CHECK_INSTANCE_TYPE ((plugin), BSE_TYPE_PLUGIN))
15 #define BSE_IS_PLUGIN_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_PLUGIN))
16 #define BSE_PLUGIN_GET_CLASS(plugin) (G_TYPE_INSTANCE_GET_CLASS ((plugin), BSE_TYPE_PLUGIN, BsePluginClass))
17 
18 struct BsePlugin : GObject {
19  gchar *fname;
20  gpointer gmodule;
21  guint64 missing_export_flags;
22  guint use_count : 16;
23  guint version_match : 1;
24  guint force_clean : 1;
25  guint resident_types : 1;
26 
27  BseExportNode *chain;
28  guint n_types;
29  GType *types;
30 };
31 struct BsePluginClass : GObjectClass
32 {};
33 
34 SfiRing* bse_plugin_path_list_files (gboolean include_drivers,
35  gboolean include_plugins);
36 const gchar* bse_plugin_check_load (const gchar *file_name);
37 void bse_plugin_make_resident ();
38 /* --- implementation details --- */
39 void bse_plugin_init_builtins (void);
40 extern BseExportIdentity bse_builtin_export_identity; /* sync with bsecxxplugin.hh */
41 G_END_DECLS
42 #endif /* __BSE_PLUGIN_H__ */
Definition: bseplugin.hh:18
Definition: bseexports.hh:105
Definition: sfiring.hh:23
Definition: bseplugin.hh:31