aboutsummaryrefslogtreecommitdiffstats
path: root/src/policy_manager/zipc/dummy_stm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/policy_manager/zipc/dummy_stm.h')
-rw-r--r--src/policy_manager/zipc/dummy_stm.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/policy_manager/zipc/dummy_stm.h b/src/policy_manager/zipc/dummy_stm.h
index 987bd00..e848628 100644
--- a/src/policy_manager/zipc/dummy_stm.h
+++ b/src/policy_manager/zipc/dummy_stm.h
@@ -37,6 +37,8 @@
#define STM_EVT_NO_LAMP_ON 0x0B
#define STM_EVT_NO_LIGHTSTATUS_BRAKE_OFF 0x0C
#define STM_EVT_NO_LIGHTSTATUS_BRAKE_ON 0x0D
+#define STM_EVT_NO_RESTRICTION_MODE_OFF 0x0E
+#define STM_EVT_NO_RESTRICTION_MODE_ON 0x0F
// Category number
#define STM_CTG_NO_HOMESCREEN 0x0100
@@ -63,7 +65,7 @@
#define STM_MSK_ARA_NO 0xFF0000
// Number of events, categories and areas
-#define STM_NUM_EVT 13
+#define STM_NUM_EVT 15
#define STM_NUM_CTG 7
#define STM_NUM_ARA 8
@@ -98,6 +100,11 @@ enum stm_lightstatus_brake_state_ {
gStmLightstatusBrakeStateNoOn
};
+enum stm_restriction_mode_state_ {
+ gStmRestrictionModeStateNoOff = 0,
+ gStmRestrictionModeStateNoOn
+};
+
enum stm_layout_ {
gStmLayoutNoNone = 0,
gStmLayoutNoPu,
@@ -129,6 +136,7 @@ extern const char* gStmCarStateNo2Name[];
extern const char* gStmLampStateNo2Name[];
extern const char* gStmLayoutNo2Name[];
extern const char* gStmLightstatusBrakeStateNo2Name[];
+extern const char* gStmRestrictionModeStateNo2Name[];
// Struct for state
typedef struct stm_base_state_ {
@@ -150,6 +158,7 @@ typedef struct {
stm_base_state car;
stm_base_state lamp;
stm_base_state lightstatus_brake;
+ stm_base_state restriction_mode;
stm_layer_state layer;
} stm_state_t;