summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-06-16 09:44:53 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-06-16 15:26:11 +0200
commitf1b58c3faed91ddae6755b5cc0d211cc8aa32574 (patch)
tree783e340c4a48f88ee89783926f4cee7e9e53ec49 /src/main.c
parent972d3cdce00e7d7a4a0c1025072c507db1fa2a31 (diff)
downloadconnman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.tar.gz
connman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.tar.bz2
connman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.zip
element: Remove element.c
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c31
1 files changed, 24 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 0de8cd16..0f96d6c3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -264,7 +265,12 @@ int main(int argc, char *argv[])
parse_config(config);
__connman_storage_init();
- __connman_element_init();
+ __connman_technology_init();
+ __connman_notifier_init();
+ __connman_location_init();
+ __connman_service_init();
+ __connman_provider_init();
+ __connman_network_init();
__connman_device_init(option_device, option_nodevice);
__connman_agent_init();
@@ -289,7 +295,13 @@ int main(int argc, char *argv[])
__connman_plugin_init(option_plugin, option_noplugin);
- __connman_element_start();
+ __connman_storage_init_profile();
+
+ __connman_rtnl_start();
+ __connman_dhcp_init();
+ __connman_wpad_init();
+ __connman_wispr_init();
+ __connman_rfkill_init();
g_free(option_device);
g_free(option_plugin);
@@ -303,10 +315,12 @@ int main(int argc, char *argv[])
g_main_loop_run(main_loop);
- __connman_element_stop();
-
+ __connman_rfkill_cleanup();
+ __connman_wispr_cleanup();
+ __connman_wpad_cleanup();
+ __connman_dhcp_cleanup();
+ __connman_provider_cleanup();
__connman_plugin_cleanup();
-
__connman_connection_cleanup();
__connman_timeserver_cleanup();
__connman_session_cleanup();
@@ -326,9 +340,12 @@ int main(int argc, char *argv[])
__connman_agent_cleanup();
__connman_tethering_cleanup();
__connman_iptables_cleanup();
-
__connman_device_cleanup();
- __connman_element_cleanup();
+ __connman_network_cleanup();
+ __connman_service_cleanup();
+ __connman_location_cleanup();
+ __connman_notifier_cleanup();
+ __connman_technology_cleanup();
__connman_storage_cleanup();
__connman_dbus_cleanup();