diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-07-11 16:21:37 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-08-15 01:49:00 +0000 |
commit | 1859dd4135f5d019f16a1333df318ecd1211afb9 (patch) | |
tree | e8b5e087215b087143f7982bf459d1d60ed45f65 /policy_manager/stm/zipc/Common | |
parent | c1d85371b1eb693128cf9553c356ea77e609d9a3 (diff) |
Readd policy table generated by ZIPC for EXAMPLE
This patch reverts commit e4222ca8da3b02afca5625fa2cef6832aa8ce90e
and update it.
To Policy Manager, add the source code of policy table
which is generated by ZIPC for EXAMPLE.
If use this example,
please comment out line 22 and uncomment line 23
in policy_manager/CMakeLists.txt as follows:
#set(STM_DIR stub)
set(STM_DIR zipc)
If try to show split layout,
please set bool value "ON" to TRY_SPLIT_LAYOUT at line 28
in policy_manager/CMakeLists.txt as follows:
set(TRY_SPLIT_LAYOUT OFF CACHE BOOL "Enable to show split layout")
The generated source codes by ZIPC are
"Common" and "StateTransitionor" in policy_manager/stm/zipc/.
Bug-AGL: SPEC-1537
Change-Id: I1f91cf728eab79c229c5b4b12b9e1bdd338f64aa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'policy_manager/stm/zipc/Common')
-rw-r--r-- | policy_manager/stm/zipc/Common/Event.h | 6 | ||||
-rw-r--r-- | policy_manager/stm/zipc/Common/MisraCType.h | 16 | ||||
-rw-r--r-- | policy_manager/stm/zipc/Common/ZCommonInclude.h | 16 |
3 files changed, 38 insertions, 0 deletions
diff --git a/policy_manager/stm/zipc/Common/Event.h b/policy_manager/stm/zipc/Common/Event.h new file mode 100644 index 0000000..3601b08 --- /dev/null +++ b/policy_manager/stm/zipc/Common/Event.h @@ -0,0 +1,6 @@ +#ifndef ZHEADER_EVENT_H +#define ZHEADER_EVENT_H + +#define ZEVENT_NULL ( 0U ) + +#endif diff --git a/policy_manager/stm/zipc/Common/MisraCType.h b/policy_manager/stm/zipc/Common/MisraCType.h new file mode 100644 index 0000000..5a535fb --- /dev/null +++ b/policy_manager/stm/zipc/Common/MisraCType.h @@ -0,0 +1,16 @@ +#ifndef ZHEADER_MISRACTYPE_H +#define ZHEADER_MISRACTYPE_H + +typedef char char_t; +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef signed long int64_t; +typedef unsigned long uint64_t; +typedef float float32_t; +typedef double float64_t; + +#endif diff --git a/policy_manager/stm/zipc/Common/ZCommonInclude.h b/policy_manager/stm/zipc/Common/ZCommonInclude.h new file mode 100644 index 0000000..6b9b84b --- /dev/null +++ b/policy_manager/stm/zipc/Common/ZCommonInclude.h @@ -0,0 +1,16 @@ +#ifndef ZHEADER_ZCOMMONINCLUDE_H +#define ZHEADER_ZCOMMONINCLUDE_H + +#define ZFALSE ( 0U ) +#define ZTRUE ( 1U ) + +#define ZNULL ( 0x00 ) + +#define ZEVENT_NONHIT ( -1 ) + +#define ZRET_NORMAL ( 0U ) +#define ZRET_ERROR ( 1U ) +#define ZRET_NONACTIVE ( 2U ) +typedef unsigned char ZeRetType; + +#endif |