summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Makefile.am4
-rw-r--r--plugins/loopback.c38
2 files changed, 41 insertions, 1 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index ef5a82dd..b9011f9e 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -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
index 00000000..255d2bf4
--- /dev/null
+++ b/plugins/loopback.c
@@ -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)