static void plugin_tilde_list (Pd_Plugin_Tilde* x) { void* user_data[1]; user_data[0] = x; plugin_tilde_pushlocale(); LADSPAPluginSearch(plugin_tilde_ladspa_describe,(void*)user_data); plugin_tilde_poplocale(); }
static gboolean plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (ladspa_debug, "ladspa", GST_DEBUG_FG_GREEN | GST_DEBUG_BG_BLACK | GST_DEBUG_BOLD, "LADSPA"); parent_class = g_type_class_ref (GST_TYPE_SIGNAL_PROCESSOR); ladspa_plugin = plugin; LADSPAPluginSearch (ladspa_describe_plugin); return TRUE; }
const char* plugin_tilde_ladspa_search_plugin (Pd_Plugin_Tilde* x, const char* name) { char* lib_name = NULL; void* user_data[2]; user_data[0] = (void*)(&lib_name); user_data[1] = (void*)name; lib_name = NULL; plugin_tilde_pushlocale(); LADSPAPluginSearch (plugin_tilde_ladspa_search_plugin_callback, (void*)user_data); plugin_tilde_poplocale(); /* The callback (allocates and) writes lib_name, if it finds the plugin */ return lib_name; }
/* Returns 0 if all goes well, otherwise returns 1. */ static int listPlugins() { LADSPAPluginSearch(describePluginLibrary); return(0); }