From 5018853676931bf252d81439a6d3da0e3c89d80d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 1 Mar 2008 08:01:23 +0100 Subject: [PATCH] Update function names of 802.03 plugin --- plugins/80203.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/plugins/80203.c b/plugins/80203.c index b4d6745..4d085c0 100644 --- a/plugins/80203.c +++ b/plugins/80203.c @@ -29,13 +29,14 @@ #include #include +#include -static int iface_probe(struct connman_iface *iface) +static int ethernet_probe(struct connman_iface *iface) { char sysfs_path[PATH_MAX]; struct stat st; - printf("[802.03] probe interface index %d\n", iface->index); + DBG("iface %p", iface); snprintf(sysfs_path, PATH_MAX, "%s/bridge", iface->sysfs); @@ -50,29 +51,27 @@ static int iface_probe(struct connman_iface *iface) return 0; } -static void iface_remove(struct connman_iface *iface) +static void ethernet_remove(struct connman_iface *iface) { - printf("[802.03] remove interface index %d\n", iface->index); + DBG("iface %p", iface); } -static struct connman_iface_driver iface_driver = { +static struct connman_iface_driver ethernet_driver = { .name = "80203", .capability = "net.80203", - .probe = iface_probe, - .remove = iface_remove, + .probe = ethernet_probe, + .remove = ethernet_remove, }; -static int plugin_init(void) +static int ethernet_init(void) { - connman_iface_register(&iface_driver); - - return 0; + return connman_iface_register(ðernet_driver); } -static void plugin_exit(void) +static void ethernet_exit(void) { - connman_iface_unregister(&iface_driver); + connman_iface_unregister(ðernet_driver); } CONNMAN_PLUGIN_DEFINE("80203", "IEEE 802.03 interface plugin", VERSION, - plugin_init, plugin_exit) + ethernet_init, ethernet_exit) -- 2.7.4