diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2012-01-12 15:13:40 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-16 12:15:44 +0100 |
commit | 4545a49c59d7a7fe8fb9be3d9da2817ec62dbd27 (patch) | |
tree | 9e220f5d9441e246320dc8a7e9801c3e7addfba0 /plugins | |
parent | b028ebed661dfb9e07c9f80ef9057e8d4685ed7e (diff) | |
download | connman-4545a49c59d7a7fe8fb9be3d9da2817ec62dbd27.tar.gz connman-4545a49c59d7a7fe8fb9be3d9da2817ec62dbd27.tar.bz2 connman-4545a49c59d7a7fe8fb9be3d9da2817ec62dbd27.zip |
ethernet: Add technology driver for handling ethernet
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ethernet.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 82950936..0cbaf24e 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -309,10 +309,31 @@ static struct connman_technology_driver tech_driver = { .set_tethering = tech_set_tethering, }; +static int eth_probe(struct connman_technology *technology) +{ + return 0; +} + +static void eth_remove(struct connman_technology *technology) +{ + DBG(""); +} + +static struct connman_technology_driver eth_driver = { + .name = "ethernet", + .type = CONNMAN_SERVICE_TYPE_ETHERNET, + .probe = eth_probe, + .remove = eth_remove, +}; + static int ethernet_init(void) { int err; + err = connman_technology_driver_register(ð_driver); + if (err < 0) + return err; + err = connman_network_driver_register(&cable_driver); if (err < 0) return err; @@ -335,6 +356,8 @@ static int ethernet_init(void) static void ethernet_exit(void) { + connman_technology_driver_unregister(ð_driver); + connman_technology_driver_unregister(&tech_driver); connman_network_driver_unregister(&cable_driver); |