summaryrefslogtreecommitdiff
path: root/include/CommonAPI/CallInfo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CommonAPI/CallInfo.hpp')
-rw-r--r--include/CommonAPI/CallInfo.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/CommonAPI/CallInfo.hpp b/include/CommonAPI/CallInfo.hpp
new file mode 100644
index 0000000..a6f43bd
--- /dev/null
+++ b/include/CommonAPI/CallInfo.hpp
@@ -0,0 +1,31 @@
+// Copyright (C) 2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// 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 COMMONAPI_CALLINFO_HPP_
+#define COMMONAPI_CALLINFO_HPP_
+
+#include <CommonAPI/Config.hpp>
+#include <CommonAPI/Types.hpp>
+
+namespace CommonAPI {
+
+struct COMMONAPI_EXPORT CallInfo {
+ CallInfo()
+ : timeout_(DEFAULT_SEND_TIMEOUT_MS), sender_(0) {
+ }
+ CallInfo(Timeout_t _timeout)
+ : timeout_(_timeout), sender_(0) {
+ }
+ CallInfo(Timeout_t _timeout, Sender_t _sender)
+ : timeout_(_timeout), sender_(_sender) {
+ }
+
+ Timeout_t timeout_;
+ Sender_t sender_;
+};
+
+} // namespace CommonAPI
+
+#endif // COMMONAPI_ADDRESS_HPP_