2 * Copyright (c) 2018 TOYOTA MOTOR CORPORATION
3 * Copyright (c) 2019 Konsulko Group
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #include "stm_inner.h"
22 const char* kStmEventName[] = {
26 "restriction_mode_off",
27 "restriction_mode_1_on",
28 "restriction_mode_2_on",
32 const char* kStmCategoryName[] = {
47 const char* kStmAreaName[] = {
55 "restriction.split.main",
56 "restriction.split.sub",
61 const char* kStmLayoutName[] = {
73 "restriction.split.main",
74 "restriction.split.sub",
84 const char* kStmLayerName[] = {
93 const char* kStmModeName[] = {
103 const char* kStmRestrictionModeStateName[] = {
109 const char** kStmModeStateNameList[] = {
110 kStmRestrictionModeStateName,
113 void stmInitialize() {
114 stmInitializeInner();
117 int stmTransitionState(int event, StmState* state) {
118 return stmTransitionStateInner(event, state);
121 void stmUndoState() {