comparison src/audacious/pluginenum.c @ 2812:5bd949bbd1c7 trunk

[svn] - remove xmms-like plugin loader
author nenolod
date Mon, 28 May 2007 03:16:56 -0700
parents d5c77e670be0
children 8c518e7b2fff
comparison
equal deleted inserted replaced
2811:1c7ee5ed3a10 2812:5bd949bbd1c7
362 362
363 plugin2_process(header, module, filename); 363 plugin2_process(header, module, filename);
364 return; 364 return;
365 } 365 }
366 366
367 /* v1 plugin loading */
368 for (type = plugin_types; type->name; type++)
369 {
370 if (g_module_symbol(module, type->id, &func)) {
371 Plugin *plugin = PLUGIN_GET_INFO(func);
372
373 plugin->handle = module;
374 plugin->filename = g_strdup(filename);
375 type->init(PLUGIN_GET_INFO(func));
376
377 return;
378 }
379 }
380
381 printf("Invalid plugin (%s)\n", filename); 367 printf("Invalid plugin (%s)\n", filename);
382 g_module_close(module); 368 g_module_close(module);
383 } 369 }
384 370
385 static gboolean 371 static gboolean