Mercurial > audlegacy
comparison audacious/pluginenum.c @ 12:b03906396b3a trunk
[svn] Debugging notices.
| author | nenolod |
|---|---|
| date | Mon, 24 Oct 2005 14:29:19 -0700 |
| parents | cb178e5ad177 |
| children | 763afa52f416 |
comparison
equal
deleted
inserted
replaced
| 11:ec508fe218b9 | 12:b03906396b3a |
|---|---|
| 197 | 197 |
| 198 if (plugin_is_duplicate(filename)) | 198 if (plugin_is_duplicate(filename)) |
| 199 return; | 199 return; |
| 200 | 200 |
| 201 if (!(module = g_module_open(filename, 0))) { | 201 if (!(module = g_module_open(filename, 0))) { |
| 202 g_warning("Failed to load plugin (%s): %s", | 202 printf("Failed to load plugin (%s): %s\n", |
| 203 filename, g_module_error()); | 203 filename, g_module_error()); |
| 204 return; | 204 return; |
| 205 } | 205 } |
| 206 | 206 |
| 207 for (type = plugin_types; type->name; type++) | 207 for (type = plugin_types; type->name; type++) |
| 211 | 211 |
| 212 plugin->handle = module; | 212 plugin->handle = module; |
| 213 plugin->filename = g_strdup(filename); | 213 plugin->filename = g_strdup(filename); |
| 214 type->init(PLUGIN_GET_INFO(func)); | 214 type->init(PLUGIN_GET_INFO(func)); |
| 215 | 215 |
| 216 g_message("Loaded %s plugin (%s)", type->name, filename); | 216 printf("Loaded %s plugin (%s)\n", type->name, filename); |
| 217 return; | 217 return; |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 g_warning("Invalid plugin (%s)", filename); | 221 printf("Invalid plugin (%s)\n", filename); |
| 222 g_module_close(module); | 222 g_module_close(module); |
| 223 } | 223 } |
| 224 | 224 |
| 225 static gboolean | 225 static gboolean |
| 226 scan_plugin_func(const gchar * path, const gchar * basename, gpointer data) | 226 scan_plugin_func(const gchar * path, const gchar * basename, gpointer data) |
