Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 
8 /* --- BSE type macros --- */
9 #define BSE_TYPE_PLUGIN (BSE_TYPE_ID (BsePlugin))
10 #define BSE_PLUGIN(plugin) (G_TYPE_CHECK_INSTANCE_CAST ((plugin), BSE_TYPE_PLUGIN, BsePlugin))
11 #define BSE_PLUGIN_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_PLUGIN, BsePluginClass))
12 #define BSE_IS_PLUGIN(plugin) (G_TYPE_CHECK_INSTANCE_TYPE ((plugin), BSE_TYPE_PLUGIN))
13 #define BSE_IS_PLUGIN_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_PLUGIN))
14 #define BSE_PLUGIN_GET_CLASS(plugin) (G_TYPE_INSTANCE_GET_CLASS ((plugin), BSE_TYPE_PLUGIN, BsePluginClass))
15 
16 struct BsePlugin : GObject {
17  gchar *fname;
18  gpointer gmodule;
19  guint64 missing_export_flags;
20  guint use_count : 16;
21  guint version_match : 1;
22  guint force_clean : 1;
23  guint resident_types : 1;
24 
25  BseExportNode *chain;
26  guint n_types;
27  GType *types;
28 };
29 struct BsePluginClass : GObjectClass
30 {};
31 
32 SfiRing* bse_plugin_path_list_files (gboolean include_drivers,
33  gboolean include_plugins);
34 const gchar* bse_plugin_check_load (const gchar *file_name);
35 void bse_plugin_make_resident ();
36 /* --- implementation details --- */
37 void bse_plugin_init_builtins (void);
38 
39 extern BseExportIdentity bse_builtin_export_identity; /* sync with bsecxxplugin.hh */
40 
41 #endif /* __BSE_PLUGIN_H__ */
Definition: bseplugin.hh:16
Definition: bseexports.hh:103
Definition: sfiring.hh:21
Definition: bseplugin.hh:29