Add skeleton for technology specific functions
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 3 Jan 2010 03:04:40 +0000 (19:04 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 3 Jan 2010 03:04:40 +0000 (19:04 -0800)
Makefile.am
src/connman.h
src/element.c
src/technology.c [new file with mode: 0644]

index 46f3037..92e354b 100644 (file)
@@ -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
index dc7f7c4..38b3251 100644 (file)
@@ -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);
 
index ff3993c..f81b0b3 100644 (file)
@@ -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 (file)
index 0000000..6c46074
--- /dev/null
@@ -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("");
+}