From 8c28004e03f20b4ca78f9a7d2e28ac1d9e4e5619 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 Jan 2010 19:04:40 -0800 Subject: [PATCH] Add skeleton for technology specific functions --- Makefile.am | 3 ++- src/connman.h | 3 +++ src/element.c | 2 ++ src/technology.c | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/technology.c diff --git a/Makefile.am b/Makefile.am index 46f3037..92e354b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,7 +51,8 @@ src_connmand_SOURCES = $(gdbus_sources) $(builtin_sources) \ src/security.c src/resolver.c src/ipconfig.c \ src/ipv4.c src/dhcp.c src/rtnl.c src/inet.c \ src/utsname.c src/timeserver.c src/rfkill.c \ - src/wifi.c src/storage.c src/dbus.c src/config.c + src/wifi.c src/storage.c src/dbus.c src/config.c \ + src/technology.c if UDEV src_connmand_SOURCES += src/udev.c diff --git a/src/connman.h b/src/connman.h index dc7f7c4..38b3251 100644 --- a/src/connman.h +++ b/src/connman.h @@ -406,6 +406,9 @@ int __connman_provider_init(void); #include +int __connman_technology_init(void); +void __connman_technology_cleanup(void); + int __connman_notifier_init(void); void __connman_notifier_cleanup(void); diff --git a/src/element.c b/src/element.c index ff3993c..f81b0b3 100644 --- a/src/element.c +++ b/src/element.c @@ -1589,6 +1589,7 @@ int __connman_element_init(const char *device, const char *nodevice) element_root = g_node_new(element); + __connman_technology_init(); __connman_notifier_init(); __connman_service_init(); __connman_provider_init(); @@ -1687,6 +1688,7 @@ void __connman_element_cleanup(void) __connman_network_cleanup(); __connman_service_cleanup(); __connman_notifier_cleanup(); + __connman_technology_cleanup(); g_node_traverse(element_root, G_POST_ORDER, G_TRAVERSE_ALL, -1, free_driver, NULL); diff --git a/src/technology.c b/src/technology.c new file mode 100644 index 0000000..6c46074 --- /dev/null +++ b/src/technology.c @@ -0,0 +1,38 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007-2010 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 "connman.h" + +int __connman_technology_init(void) +{ + DBG(""); + + return 0; +} + +void __connman_technology_cleanup(void) +{ + DBG(""); +} -- 2.7.4