From 8de5c2bce2ab02078646be19b2f7402760d76394 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 9 Aug 2008 05:40:22 +0200 Subject: [PATCH] Add skeleton for RTNL link detection plugin --- plugins/Makefile.am | 4 +++- plugins/rtnllink.c | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 plugins/rtnllink.c diff --git a/plugins/Makefile.am b/plugins/Makefile.am index ea85755..780dc1a 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 0000000..07f969e --- /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 +#endif + +#include +#include +#include + +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) -- 1.7.9.5