diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-01-02 19:04:40 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-01-02 19:04:40 -0800 |
commit | 8c28004e03f20b4ca78f9a7d2e28ac1d9e4e5619 (patch) | |
tree | 5cf5ebabe5cd99a27871b909b97b9fbbbf266dc1 | |
parent | b5c20f7f5549e04b6cc0b308d53eb190e4789e7f (diff) | |
download | connman-8c28004e03f20b4ca78f9a7d2e28ac1d9e4e5619.tar.gz connman-8c28004e03f20b4ca78f9a7d2e28ac1d9e4e5619.tar.bz2 connman-8c28004e03f20b4ca78f9a7d2e28ac1d9e4e5619.zip |
Add skeleton for technology specific functions
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | src/connman.h | 3 | ||||
-rw-r--r-- | src/element.c | 2 | ||||
-rw-r--r-- | src/technology.c | 38 |
4 files changed, 45 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 46f30373..92e354b5 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 dc7f7c49..38b3251a 100644 --- a/src/connman.h +++ b/src/connman.h @@ -406,6 +406,9 @@ int __connman_provider_init(void); #include <connman/notifier.h> +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 ff3993c9..f81b0b3a 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 00000000..6c460743 --- /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 <config.h> +#endif + +#include "connman.h" + +int __connman_technology_init(void) +{ + DBG(""); + + return 0; +} + +void __connman_technology_cleanup(void) +{ + DBG(""); +} |