Readd policy table generated by ZIPC for EXAMPLE
[apps/agl-service-windowmanager-2017.git] / policy_manager / stm / zipc / StateTransitionor / RestrictionMode / ZREM_RestrictionMode_func.c
1 /************************************************************/
2 /*     ZREM_RestrictionMode_func.c                          */
3 /*     Function and variable source file                    */
4 /*     ZIPC Designer Version 1.2.0                          */
5 /************************************************************/
6 #include "../ZST_include.h"
7
8 /*************************************************************
9     Function definition
10 *************************************************************/
11
12 /*
13  * @name stm_rem_start_activity_restriction_mode_1_on
14  */
15 void stm_rem_start_activity_restriction_mode_1_on() {
16     g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNo1On;
17     g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
18 }
19
20 /*
21  * @name stm_rem_start_activity_restriction_mode_2_on
22  */
23 void stm_rem_start_activity_restriction_mode_2_on() {
24     g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNo2On;
25     g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
26 }
27
28 /*
29  * @name stm_rem_start_activity_restriction_mode_off
30  */
31 void stm_rem_start_activity_restriction_mode_off() {
32     g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
33     g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
34 }
35
36 /*
37  * @name stm_rem_initialize_variable
38  */
39 void stm_rem_initialize_variable() {
40         g_stm_prv_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
41         g_stm_prv_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
42
43         g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
44         g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
45 }
46
47 /*
48  * @name stm_rem_start_stm
49  */
50 void stm_rem_start_stm() {
51         g_stm_prv_state.mode[StmModeNoRestrictionMode].state = g_stm_crr_state.mode[StmModeNoRestrictionMode].state;
52         g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
53 }