Release Tizen 2.0 beta
[framework/connectivity/net-config.git] / src / main.c
index bedaed1..8c6ecfd 100644 (file)
@@ -3,8 +3,6 @@
  *
  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: Danny JS Seo <S.Seo@samsung.com>
- *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 #include <unistd.h>
 
 #include "log.h"
-#include "dbus.h"
 #include "wifi.h"
 #include "emulator.h"
+#include "netdbus.h"
 #include "network-state.h"
+#include "network-statistics.h"
 #include "signal-handler.h"
 
 static GMainLoop *main_loop = NULL;
@@ -55,11 +54,15 @@ int main(int argc, char* argv[])
        if (netconfig_wifi_create_and_init(connection) == NULL)
                return -1;
 
+       if (netconfig_network_statistics_create_and_init(connection) == NULL)
+               return -1;
+
        /* If its environment uses Emulator, network configuration is set by emulator default */
        netconfig_emulator_test_and_start();
 
        g_main_loop_run(main_loop);
 
+       netconfig_wifi_state_notifier_cleanup();
        netconfig_deregister_signal();
 
        return 0;