2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __STC_FIREWALL_H__
18 #define __STC_FIREWALL_H__
21 #include "stc-manager.h"
22 #include "stc-manager-gdbus.h"
23 #include "table-firewall.h"
25 /*****************************************************************************
27 *****************************************************************************/
30 stc_fw_chain_target_e target;
35 /*****************************************************************************
36 * Functions Declaration
37 *****************************************************************************/
39 void stc_firewall_init(void);
40 void stc_firewall_update(void);
41 void stc_firewall_deinit(void);
43 gboolean handle_firewall_lock(StcFirewall *object,
44 GDBusMethodInvocation *invocation,
47 gboolean handle_firewall_unlock(StcFirewall *object,
48 GDBusMethodInvocation *invocation,
51 gboolean handle_firewall_get_lock(StcFirewall *object,
52 GDBusMethodInvocation *invocation,
55 gboolean handle_firewall_add_chain(StcFirewall *object,
56 GDBusMethodInvocation *invocation,
60 gboolean handle_firewall_remove_chain(StcFirewall *object,
61 GDBusMethodInvocation *invocation,
65 gboolean handle_firewall_flush_chain(StcFirewall *object,
66 GDBusMethodInvocation *invocation,
70 gboolean handle_firewall_get_all_chain(StcFirewall *object,
71 GDBusMethodInvocation *invocation,
74 gboolean handle_firewall_set_chain(StcFirewall *object,
75 GDBusMethodInvocation *invocation,
80 gboolean handle_firewall_unset_chain(StcFirewall *object,
81 GDBusMethodInvocation *invocation,
85 gboolean handle_firewall_add_rule(StcFirewall *object,
86 GDBusMethodInvocation *invocation,
90 gboolean handle_firewall_remove_rule(StcFirewall *object,
91 GDBusMethodInvocation *invocation,
95 gboolean handle_firewall_update_rule(StcFirewall *object,
96 GDBusMethodInvocation *invocation,
100 gboolean handle_firewall_get_all_rule(StcFirewall *object,
101 GDBusMethodInvocation *invocation,
104 #endif /* __STC_FIREWALL_H__ */