void stc_firewall_init(void)
{
+ __STC_LOG_FUNC_ENTER__;
+
int ret = STC_ERROR_NONE;
g_firewalls = g_hash_table_new_full(g_str_hash,
table_firewall_foreach_chain(__fw_table_chain_info_cb, NULL);
table_firewall_foreach_rule(__fw_table_rule_info_cb, NULL);
+
+ __STC_LOG_FUNC_EXIT__;
}
-void stc_firewall_update(void)
+API void stc_firewall_update(void)
{
+ __STC_LOG_FUNC_ENTER__;
+
__fw_chain_foreach(__fw_foreach_to_add_chain, NULL);
__fw_chain_foreach(__fw_foreach_to_set_rule_to_chain, NULL);
__fw_chain_foreach(__fw_foreach_to_set_chain, NULL);
+
+ __STC_LOG_FUNC_EXIT__;
}
void stc_firewall_deinit(void)
{
+ __STC_LOG_FUNC_ENTER__;
+
if (g_firewalls) {
g_hash_table_destroy(g_firewalls);
g_firewalls = NULL;
}
+
+ __STC_LOG_FUNC_EXIT__;
}
gboolean handle_firewall_lock(StcFirewall *object,