Mercurial > audlegacy
comparison audacious/pluginenum.c @ 1566:e513069caf71 trunk
[svn] - pls and m3u is now fully modular
author | nenolod |
---|---|
date | Thu, 10 Aug 2006 20:44:47 -0700 |
parents | c4640c88942d |
children | 20ff61083530 |
comparison
equal
deleted
inserted
replaced
1565:88c0aabb4286 | 1566:e513069caf71 |
---|---|
260 { | 260 { |
261 gchar *dir, **disabled; | 261 gchar *dir, **disabled; |
262 GList *node; | 262 GList *node; |
263 OutputPlugin *op; | 263 OutputPlugin *op; |
264 InputPlugin *ip; | 264 InputPlugin *ip; |
265 LowlevelPlugin *lp; | |
265 gint dirsel = 0, i = 0; | 266 gint dirsel = 0, i = 0; |
266 | 267 |
267 if (!g_module_supported()) { | 268 if (!g_module_supported()) { |
268 report_error("Module loading not supported! Plugins will not be loaded.\n"); | 269 report_error("Module loading not supported! Plugins will not be loaded.\n"); |
269 return; | 270 return; |
341 ip = INPUT_PLUGIN(node->data); | 342 ip = INPUT_PLUGIN(node->data); |
342 if (ip->init) | 343 if (ip->init) |
343 ip->init(); | 344 ip->init(); |
344 } | 345 } |
345 | 346 |
347 for (node = lowlevel_list; node; node = g_list_next(node)) { | |
348 lp = LOWLEVEL_PLUGIN(node->data); | |
349 if (lp->init) | |
350 lp->init(); | |
351 } | |
352 | |
346 if (cfg.disabled_iplugins) { | 353 if (cfg.disabled_iplugins) { |
347 disabled = g_strsplit(cfg.disabled_iplugins, ":", 0); | 354 disabled = g_strsplit(cfg.disabled_iplugins, ":", 0); |
348 while (disabled[i]) { | 355 while (disabled[i]) { |
349 g_hash_table_replace(plugin_matrix, disabled[i], | 356 g_hash_table_replace(plugin_matrix, disabled[i], |
350 GINT_TO_POINTER(FALSE)); | 357 GINT_TO_POINTER(FALSE)); |