From 0a0755108ecc30dfb3d5a063e25c2b365d136e65 Mon Sep 17 00:00:00 2001 From: Andriy Byzhynar Date: Mon, 14 May 2018 10:56:39 +0300 Subject: Implement external proprietary policy for expandable design Implemented support of expandable design for EXTERNAL_PROPRIETARY policy flow --- .../policy/policy_external/include/policy/policy_table/enums.h | 3 ++- .../policy/policy_external/include/policy/policy_table/types.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/policy/policy_external/include/policy/policy_table') diff --git a/src/components/policy/policy_external/include/policy/policy_table/enums.h b/src/components/policy/policy_external/include/policy/policy_table/enums.h index 9f80921bb3..96a6748436 100644 --- a/src/components/policy/policy_external/include/policy/policy_table/enums.h +++ b/src/components/policy/policy_external/include/policy/policy_table/enums.h @@ -150,7 +150,8 @@ enum RequestType { RT_EMERGENCY, RT_MEDIA, RT_FOTA, - RT_OEM_SPECIFIC + RT_OEM_SPECIFIC, + RT_EMPTY // Added to allow empty Request Types handling }; bool IsValidEnum(RequestType val); diff --git a/src/components/policy/policy_external/include/policy/policy_table/types.h b/src/components/policy/policy_external/include/policy/policy_table/types.h index 53f5a35b99..8309b14228 100644 --- a/src/components/policy/policy_external/include/policy/policy_table/types.h +++ b/src/components/policy/policy_external/include/policy/policy_table/types.h @@ -102,6 +102,8 @@ typedef Map DeviceData; typedef Array, 0, 255> RequestsTypeArray; +typedef Strings RequestSubTypes; + #ifdef SDL_REMOTE_CONTROL typedef Map RemoteRpcs; typedef Map AccessModules; @@ -173,6 +175,7 @@ struct ApplicationParams : PolicyBase { Optional nicknames; Optional AppHMIType; Optional RequestType; + Optional RequestSubType; Optional > memory_kb; Optional > heart_beat_timeout_ms; #ifdef SDL_REMOTE_CONTROL -- cgit v1.2.1