summaryrefslogtreecommitdiff
path: root/implementation/configuration/include/e2e.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/configuration/include/e2e.hpp')
-rw-r--r--implementation/configuration/include/e2e.hpp40
1 files changed, 12 insertions, 28 deletions
diff --git a/implementation/configuration/include/e2e.hpp b/implementation/configuration/include/e2e.hpp
index 94eb33d..8c873c2 100644
--- a/implementation/configuration/include/e2e.hpp
+++ b/implementation/configuration/include/e2e.hpp
@@ -3,48 +3,37 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef VSOMEIP_CFG_E2E_HPP_
-#define VSOMEIP_CFG_E2E_HPP_
+#ifndef VSOMEIP_V3_CFG_E2E_HPP_
+#define VSOMEIP_V3_CFG_E2E_HPP_
+#include <map>
#include <string>
#include <vector>
#include <vsomeip/primitive_types.hpp>
-namespace vsomeip {
+namespace vsomeip_v3 {
namespace cfg {
struct e2e {
+ typedef std::map<std::string, std::string> custom_parameters_t;
e2e() :
data_id(0),
variant(""),
profile(""),
service_id(0),
- event_id(0),
- crc_offset(0),
- data_id_mode(0),
- data_length(0),
- data_id_nibble_offset(0),
- counter_offset(0) {
+ event_id(0) {
}
-
e2e(uint16_t _data_id, std::string _variant, std::string _profile, service_t _service_id,
- event_t _event_id,uint16_t _crc_offset,
- uint8_t _data_id_mode, uint16_t _data_length, uint16_t _data_id_nibble_offset, uint16_t _counter_offset) :
-
+ event_t _event_id, custom_parameters_t&& _custom_parameters) :
data_id(_data_id),
variant(_variant),
profile(_profile),
service_id(_service_id),
event_id(_event_id),
- crc_offset(_crc_offset),
- data_id_mode(_data_id_mode),
- data_length(_data_length),
- data_id_nibble_offset(_data_id_nibble_offset),
- counter_offset(_counter_offset) {
-
+ custom_parameters(_custom_parameters) {
}
// common config
@@ -54,16 +43,11 @@ struct e2e {
service_t service_id;
event_t event_id;
- //profile 1 specific config
- // [SWS_E2E_00018]
- uint16_t crc_offset;
- uint8_t data_id_mode;
- uint16_t data_length;
- uint16_t data_id_nibble_offset;
- uint16_t counter_offset;
+ // custom parameters
+ custom_parameters_t custom_parameters;
};
} // namespace cfg
-} // namespace vsomeip
+} // namespace vsomeip_v3
-#endif // VSOMEIP_CFG_E2E_HPP_
+#endif // VSOMEIP_V3_CFG_E2E_HPP_