Add skeleton for RTNL link detection plugin
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 9 Aug 2008 03:40:22 +0000 (05:40 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 9 Aug 2008 03:40:22 +0000 (05:40 +0200)
plugins/Makefile.am
plugins/rtnllink.c [new file with mode: 0644]

index ea85755..780dc1a 100644 (file)
@@ -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 (file)
index 0000000..07f969e
--- /dev/null
@@ -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)