src/plugins.c

changeset 2372
c24942700dfd
parent 2360
ddca90bfbd7b
child 2393
cfef0212506b
equal deleted inserted replaced
2371:3dcdd158010d 2372:c24942700dfd
225 return; 225 return;
226 } 226 }
227 227
228 plugins = g_list_append(plugins, plug); 228 plugins = g_list_append(plugins, plug);
229 229
230 if (g_module_symbol(plug->handle, "name", (gpointer *)&cfunc)) 230 if (g_module_symbol(plug->handle, "name", (gpointer *)&cfunc)) {
231 plug->name = (*cfunc)(); 231 plug->name = (*cfunc)();
232 else 232 } else {
233 plug->name = NULL; 233 plug->name = NULL;
234 }
234 235
235 if (g_module_symbol(plug->handle, "description", (gpointer *)&cfunc)) 236 if (g_module_symbol(plug->handle, "description", (gpointer *)&cfunc))
236 plug->description = (*cfunc)(); 237 plug->description = (*cfunc)();
237 else 238 else
238 plug->description = NULL; 239 plug->description = NULL;

mercurial