diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-03 15:01:35 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-03 15:01:35 +0100 |
commit | 8d21832bcf8cef0708c9d19a771d679140135ea5 (patch) | |
tree | b2658a2db3b12a449bd2def3ad3c0c020045a8e7 /plugins | |
parent | 3a6bc9d1470e1196923e95d0095e38a4b710e078 (diff) | |
download | connman-8d21832bcf8cef0708c9d19a771d679140135ea5.tar.gz connman-8d21832bcf8cef0708c9d19a771d679140135ea5.tar.bz2 connman-8d21832bcf8cef0708c9d19a771d679140135ea5.zip |
Add skeleton for future WiMAX plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/wimax.c | 77 |
2 files changed, 83 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 9b013ad2..71ae0cf9 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -22,6 +22,12 @@ wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c wifi_la_LIBADD = @GDBUS_LIBS@ endif +if WIMAX +plugin_LTLIBRARIES += wimax.la + +wimax_la_SOURCES = wimax.c +endif + if BLUETOOTH plugin_LTLIBRARIES += bluetooth.la diff --git a/plugins/wimax.c b/plugins/wimax.c new file mode 100644 index 00000000..e008dc92 --- /dev/null +++ b/plugins/wimax.c @@ -0,0 +1,77 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#define CONNMAN_API_SUBJECT_TO_CHANGE +#include <connman/plugin.h> +#include <connman/device.h> +#include <connman/log.h> + +static int wimax_probe(struct connman_device *device) +{ + DBG("device %p", device); + + return 0; +} + +static void wimax_remove(struct connman_device *device) +{ + DBG("device %p", device); +} + +static int wimax_enable(struct connman_device *device) +{ + DBG("device %p", device); + + return 0; +} + +static int wimax_disable(struct connman_device *device) +{ + DBG("device %p", device); + + return 0; +} + +static struct connman_device_driver wimax_driver = { + .name = "wimax", + .type = CONNMAN_DEVICE_TYPE_WIMAX, + .probe = wimax_probe, + .remove = wimax_remove, + .enable = wimax_enable, + .disable = wimax_disable, +}; + +static int wimax_init(void) +{ + return connman_device_driver_register(&wimax_driver); +} + +static void wimax_exit(void) +{ + connman_device_driver_unregister(&wimax_driver); +} + +CONNMAN_PLUGIN_DEFINE(wimax, "WiMAX interface plugin", VERSION, + wimax_init, wimax_exit) |