Changeset 5433:6a6c001574c0 in roaraudio for include/libroar
- Timestamp:
- 03/20/12 13:31:32 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/plugincontainer.h
r5432 r5433 44 44 struct roar_plugincontainer * roar_plugincontainer_new(struct roar_dl_librarypara * default_para); 45 45 #endif 46 47 /* Create a new plugin container. 48 * Takes host application's appname and abiversion. 49 */ 46 50 struct roar_plugincontainer * roar_plugincontainer_new_simple(const char * appname, const char * abiversion); 47 51 52 // Increment the refrence counter. 48 53 int roar_plugincontainer_ref(struct roar_plugincontainer * cont); 54 /* Decrement the refrence counter. 55 * Unloads all plugins and frees all resources when there are no refreneces left. 56 */ 49 57 int roar_plugincontainer_unref(struct roar_plugincontainer * cont); 50 58 51 59 /* 52 60 * stuff we still need: 53 * object creation, load plugin, get plugin handle, setting search path.61 * object creation, get plugin handle. 54 62 */ 55 63 56 64 // plugin loading and unloading: 65 66 // Load a plugin by name. 57 67 int roar_plugincontainer_load (struct roar_plugincontainer * cont, 58 68 const char * name, 59 69 struct roar_dl_librarypara * para); 70 71 /* Load a plugin by name with extra options. 72 * This is for advanced applications only. 73 */ 60 74 struct roar_dl_lhandle * roar_plugincontainer_load_lhandle (struct roar_plugincontainer * cont, 61 75 const char * name, … … 63 77 int ra_init, 64 78 struct roar_dl_librarypara * para); 79 /* Unload a plugin by name. 80 * NOTE: The name here is from the plugin and may not match the name you load 81 * the plugin with. 82 */ 65 83 int roar_plugincontainer_unload (struct roar_plugincontainer * cont, 66 84 const char * name); 85 /* Load a plugin by roardl handle. 86 * This is for advanced applications only. 87 */ 67 88 int roar_plugincontainer_unload_lhandle (struct roar_plugincontainer * cont, 68 89 struct roar_dl_lhandle * lhandle); 90 /* Post ra_init plugins not yet inited. 91 * NOTE: This uses the default para, 92 * not the one given with roar_plugincontainer_load_lhandle(). 93 * This is for advanced applications only. 94 */ 69 95 int roar_plugincontainer_ra_init (struct roar_plugincontainer * cont); 70 96 71 97 // appsched: 98 // Trigger an application schedule event on all plugins. 72 99 int roar_plugincontainer_appsched_trigger(struct roar_plugincontainer * cont, enum roar_dl_appsched_trigger trigger); 73 100
Note: See TracChangeset
for help on using the changeset viewer.