#include "stc-statistics.h"
#include "stc-restriction.h"
#include "stc-default-connection.h"
-#include "stc-app-ground-status.h"
+#include "stc-manager-plugin.h"
+#include "stc-app-lifecycle.h"
+#include "helper-iptables.h"
static gboolean __stc_manager_gdbus_statistics_init(stc_s *stc)
{
g_dbus_object_manager_server_set_connection(stc->obj_mgr,
stc->connection);
- stc_app_ground_status_monitor_init(stc);
+ iptables_init();
stc_default_connection_monitor_init(stc);
+ stc_register_state_changed_cb(stc, stc_manager_app_status_changed, NULL);
__STC_LOG_FUNC_EXIT__;
}
{
__STC_LOG_FUNC_ENTER__;
stc_s *stc = (stc_s *)stc_data;
- stc_app_ground_status_monitor_deinit(stc);
+
+ stc_deregister_state_changed_cb(stc);
stc_default_connection_monitor_deinit(stc);
+
g_bus_unown_name(stc->gdbus_owner_id);
+
stc->statistics_obj = NULL;
stc->restriction_obj = NULL;
__STC_LOG_FUNC_EXIT__;