-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99ebf34
commit 89720d3
Showing
50 changed files
with
685 additions
and
514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
capi_srcs = [ | ||
"src/CommonAPI/**/*.cpp" | ||
] | ||
|
||
cc_defaults { | ||
name: "capi_defaults", | ||
cppflags: [ | ||
"-std=c++11", | ||
"-Wall", | ||
"-Wextra", | ||
"-Wformat", | ||
"-Wformat-security", | ||
"-Wconversion", | ||
"-Wno-attributes", | ||
"-fexceptions", | ||
"-fstrict-aliasing", | ||
"-fstack-protector", | ||
"-fasynchronous-unwind-tables", | ||
"-fno-omit-frame-pointer", | ||
"-Werror", | ||
"-fvisibility=hidden", | ||
"-DCOMMONAPI_INTERNAL_COMPILATION" | ||
] | ||
} | ||
|
||
cc_library_shared { | ||
name: "libCommonAPI", | ||
vendor: true, | ||
srcs: capi_srcs, | ||
defaults: [ | ||
"capi_defaults" | ||
], | ||
local_include_dirs: [ | ||
"include" | ||
], | ||
export_include_dirs: ["include"], | ||
rtti: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | ||
// Copyright (C) 2015-2020 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/. | ||
|
||
#if !defined (COMMONAPI_INTERNAL_COMPILATION) | ||
#error "Only <CommonAPI/CommonAPI.hpp> can be included directly, this file may disappear or change contents." | ||
#endif | ||
|
||
#ifndef COMMONAPI_CALLINFO_HPP_ | ||
#define COMMONAPI_CALLINFO_HPP_ | ||
|
||
#include <CommonAPI/Config.hpp> | ||
#include <CommonAPI/Types.hpp> | ||
#include <string> | ||
|
||
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) { | ||
} | ||
CallInfo(const CallInfo &_other) | ||
: timeout_(_other.timeout_), sender_(_other.sender_) { | ||
} | ||
CallInfo(); | ||
CallInfo(Timeout_t _timeout); | ||
CallInfo(const CallInfo &_other); | ||
CallInfo(Timeout_t _timeout, Sender_t _sender); | ||
|
||
Timeout_t timeout_; | ||
Sender_t sender_; | ||
}; | ||
|
||
} // namespace CommonAPI | ||
|
||
#endif // COMMONAPI_ADDRESS_HPP_ | ||
#endif // COMMONAPI_CALLINFO_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.