/*
- * jack-ladspa-host
- *
- * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * JACK Rack
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * Original:
+ * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Modification for MLT:
+ * Copyright (C) 2004 Ushodaya Enterprises Limited
+ * Author: Dan Dennedy <dan@dennedy.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdlib.h>
#include "plugin_mgr.h"
#include "plugin_desc.h"
-#include "ui.h"
static gboolean
}
static void
-plugin_mgr_get_object_file_plugins (ui_t * ui, plugin_mgr_t * plugin_mgr, const char * filename)
+plugin_mgr_get_object_file_plugins (plugin_mgr_t * plugin_mgr, const char * filename)
{
const char * dlerr;
void * dl_handle;
}
static void
-plugin_mgr_get_dir_plugins (ui_t * ui, plugin_mgr_t * plugin_mgr, const char * dir)
+plugin_mgr_get_dir_plugins (plugin_mgr_t * plugin_mgr, const char * dir)
{
DIR * dir_stream;
struct dirent * dir_entry;
strcpy (file_name + dirlen + 1, dir_entry->d_name);
}
- plugin_mgr_get_object_file_plugins (ui, plugin_mgr, file_name);
+ plugin_mgr_get_object_file_plugins (plugin_mgr, file_name);
g_free (file_name);
}
}
static void
-plugin_mgr_get_path_plugins (ui_t * ui, plugin_mgr_t * plugin_mgr)
+plugin_mgr_get_path_plugins (plugin_mgr_t * plugin_mgr)
{
char * ladspa_path, * dir;
dir = strtok (ladspa_path, ":");
do
- plugin_mgr_get_dir_plugins (ui, plugin_mgr, dir);
+ plugin_mgr_get_dir_plugins (plugin_mgr, dir);
while ((dir = strtok (NULL, ":")));
g_free (ladspa_path);
}
plugin_mgr_t *
-plugin_mgr_new (ui_t * ui)
+plugin_mgr_new ()
{
plugin_mgr_t * pm;
pm->plugins = NULL;
pm->plugin_count = 0;
- plugin_mgr_get_path_plugins (ui, pm);
+ plugin_mgr_get_path_plugins (pm);
if (!pm->all_plugins)
{