- DBG("%s", g_module_name(module));
-
- if (g_module_symbol(module, "connman_plugin_desc",
- (gpointer) &desc) == FALSE) {
- g_warning("Can't load symbol");
- g_module_close(module);
+ desc = dlsym(handle, "connman_plugin_desc");
+ if (desc == NULL) {
+ g_warning("Can't load symbol: %s", dlerror());
+ dlclose(handle);