summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/include/policy/policy_table
diff options
context:
space:
mode:
authorAndriy Byzhynar <AByzhynar@luxoft.com>2018-05-14 10:56:39 +0300
committerIra Lytvynenko (GitHub) <ILytvynenko@luxoft.com>2018-05-24 13:15:46 +0300
commit0a0755108ecc30dfb3d5a063e25c2b365d136e65 (patch)
tree6f77b8ffbdd79d19cc4f1bdd401ba7923eacfeb3 /src/components/policy/policy_external/include/policy/policy_table
parent5553510f8fb8fd3c7f8a6df90490ab5f39bd29d5 (diff)
downloadsdl_core-0a0755108ecc30dfb3d5a063e25c2b365d136e65.tar.gz
Implement external proprietary policy for expandable design
Implemented support of expandable design for EXTERNAL_PROPRIETARY policy flow
Diffstat (limited to 'src/components/policy/policy_external/include/policy/policy_table')
-rw-r--r--src/components/policy/policy_external/include/policy/policy_table/enums.h3
-rw-r--r--src/components/policy/policy_external/include/policy/policy_table/types.h3
2 files changed, 5 insertions, 1 deletions
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<DeviceParams, 0, 255> DeviceData;
typedef Array<Enum<RequestType>, 0, 255> RequestsTypeArray;
+typedef Strings RequestSubTypes;
+
#ifdef SDL_REMOTE_CONTROL
typedef Map<Strings, 0, 255> RemoteRpcs;
typedef Map<RemoteRpcs, 0, 255> AccessModules;
@@ -173,6 +175,7 @@ struct ApplicationParams : PolicyBase {
Optional<Strings> nicknames;
Optional<AppHMITypes> AppHMIType;
Optional<RequestTypes> RequestType;
+ Optional<RequestSubTypes> RequestSubType;
Optional<Integer<uint16_t, 0, 65225> > memory_kb;
Optional<Integer<uint32_t, 0, UINT_MAX> > heart_beat_timeout_ms;
#ifdef SDL_REMOTE_CONTROL