Add skeleton for loopback setup plugin
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2008 23:08:47 +0000 (00:08 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2008 23:08:47 +0000 (00:08 +0100)
plugins/Makefile.am
plugins/loopback.c [new file with mode: 0644]

index ef5a82d..b9011f9 100644 (file)
@@ -1,10 +1,12 @@
 
 plugindir = $(libdir)/connman/plugins
 
-plugin_LTLIBRARIES = ethernet.la wifi.la bluetooth.la \
+plugin_LTLIBRARIES = loopback.la ethernet.la wifi.la bluetooth.la \
                                netdev.la dhclient.la ipv4.la \
                                resolvconf.la resolvfile.la rtnllink.la
 
+loopback_la_SOURCES = loopback.c
+
 ethernet_la_SOURCES = ethernet.c
 
 wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c
diff --git a/plugins/loopback.c b/plugins/loopback.c
new file mode 100644 (file)
index 0000000..255d2bf
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ *
+ *  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>
+
+static int loopback_init(void)
+{
+       return 0;
+}
+
+static void loopback_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE("loopback", "Loopback device plugin", VERSION,
+                                               loopback_init, loopback_exit)