summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-09 05:40:22 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-09 05:40:22 +0200
commit8de5c2bce2ab02078646be19b2f7402760d76394 (patch)
treeb27a7b58b1cfaee789f2db3c2d0f0b50577d1342
parenta89cdde4c815684b9a39ffac745f093a31df4dea (diff)
downloadconnman-8de5c2bce2ab02078646be19b2f7402760d76394.tar.gz
connman-8de5c2bce2ab02078646be19b2f7402760d76394.tar.bz2
connman-8de5c2bce2ab02078646be19b2f7402760d76394.zip
Add skeleton for RTNL link detection plugin
-rw-r--r--plugins/Makefile.am4
-rw-r--r--plugins/rtnllink.c40
2 files changed, 43 insertions, 1 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index ea857558..780dc1aa 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -1,13 +1,15 @@
plugindir = $(libdir)/connman/plugins
-plugin_LTLIBRARIES = hal.la ethernet.la wifi.la bluetooth.la \
+plugin_LTLIBRARIES = hal.la rtnllink.la ethernet.la wifi.la bluetooth.la \
dhclient.la ipv4.la resolvconf.la resolvfile.la
hal_la_SOURCES = hal.c
hal_la_LIBADD = @HAL_LIBS@
hal_la_CFLAGS = @GLIB_CFLAGS@ @HAL_CFLAGS@
+rtnllink_la_SOURCES = rtnllink.c
+
ethernet_la_SOURCES = ethernet.c
wifi_la_SOURCES = wifi.c supplicant.h supplicant.c
diff --git a/plugins/rtnllink.c b/plugins/rtnllink.c
new file mode 100644
index 00000000..07f969ec
--- /dev/null
+++ b/plugins/rtnllink.c
@@ -0,0 +1,40 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2008 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
+
+#include <connman/plugin.h>
+#include <connman/element.h>
+#include <connman/log.h>
+
+static int rtnllink_init(void)
+{
+ return 0;
+}
+
+static void rtnllink_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE("rtnllink", "RTNL link detection plugin", VERSION,
+ rtnllink_init, rtnllink_exit)