Plugin basics
=============
+
The Connection Manager supports plugins for various actions. The basic plugin
contains of plugin description via CONNMAN_PLUGIN_DEFINE and also init/exit
callbacks definied through that description.
{
}
-CONNMAN_PLUGIN_DEFINE("example", "Example plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(example, "Example plugin", VERSION,
example_init, example_exit)
*/
#define CONNMAN_PLUGIN_DEFINE(name, description, version, init, exit) \
struct connman_plugin_desc connman_plugin_desc = { \
- name, description, version, init, exit \
+ #name, description, version, init, exit \
};
#ifdef __cplusplus
dbus_connection_unref(connection);
}
-CONNMAN_PLUGIN_DEFINE("bluetooth", "Bluetooth technology plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(bluetooth, "Bluetooth technology plugin", VERSION,
bluetooth_init, bluetooth_exit)
dbus_connection_unref(connection);
}
-CONNMAN_PLUGIN_DEFINE("dhclient", "ISC DHCP client plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(dhclient, "ISC DHCP client plugin", VERSION,
dhclient_init, dhclient_exit)
connman_rtnl_unregister(ðernet_rtnl);
}
-CONNMAN_PLUGIN_DEFINE("ethernet", "Ethernet interface plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(ethernet, "Ethernet interface plugin", VERSION,
ethernet_init, ethernet_exit)
connman_driver_unregister(&fake_device_driver);
}
-CONNMAN_PLUGIN_DEFINE("fake", "Tesing plugin", VERSION, fake_init, fake_exit)
+CONNMAN_PLUGIN_DEFINE(fake, "Tesing plugin", VERSION, fake_init, fake_exit)
connman_driver_unregister(&ipv4_driver);
}
-CONNMAN_PLUGIN_DEFINE("ipv4", "IPv4 configuration plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(ipv4, "IPv4 configuration plugin", VERSION,
ipv4_init, ipv4_exit)
{
}
-CONNMAN_PLUGIN_DEFINE("loopback", "Loopback device plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(loopback, "Loopback device plugin", VERSION,
loopback_init, loopback_exit)
connman_driver_unregister(&netdev_driver);
}
-CONNMAN_PLUGIN_DEFINE("netdev", "Network device plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(netdev, "Network device plugin", VERSION,
netdev_init, netdev_exit)
dbus_connection_unref(connection);
}
-CONNMAN_PLUGIN_DEFINE("polkit", "PolicyKit authorization plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(polkit, "PolicyKit authorization plugin", VERSION,
polkit_init, polkit_exit)
connman_driver_unregister(&resolvconf_driver);
}
-CONNMAN_PLUGIN_DEFINE("resolvconf", "Name resolver plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(resolvconf, "Name resolver plugin", VERSION,
resolvconf_init, resolvconf_exit)
connman_driver_unregister(&resolvfile_driver);
}
-CONNMAN_PLUGIN_DEFINE("resolvfile", "Name resolver plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(resolvfile, "Name resolver plugin", VERSION,
resolvfile_init, resolvfile_exit)
device_list = NULL;
}
-CONNMAN_PLUGIN_DEFINE("rtnllink", "RTNL link detection plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(rtnllink, "RTNL link detection plugin", VERSION,
rtnllink_init, rtnllink_exit)
dbus_connection_unref(connection);
}
-CONNMAN_PLUGIN_DEFINE("wifi", "WiFi interface plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(wifi, "WiFi interface plugin", VERSION,
wifi_init, wifi_exit)