This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Don't leak asio headers from libremote-processor #353
Merged
Merged
Conversation
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
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
#include <asio.hpp> | ||
#include <utility> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: fix copyright dates. |
Current coverage is
|
dawagner
force-pushed
the
dont-leak-asio-headers
branch
2 times, most recently
from
February 16, 2016 12:54
c3e2a07
to
40f8d75
Compare
👍 |
dawagner
force-pushed
the
dont-leak-asio-headers
branch
2 times, most recently
from
February 16, 2016 14:46
472927e
to
256977a
Compare
bool read(const dummy_base &, const dummy_base &, const dummy_base &) | ||
{ | ||
return true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not in hpp ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap some classes and forward-declare some others in other not to expose any asio object in the public interfaces. This means that client (such as libparameter) will now be completely unaware of asio. Signed-off-by: David Wagner <[email protected]>
…tch class name Signed-off-by: David Wagner <[email protected]>
dawagner
force-pushed
the
dont-leak-asio-headers
branch
from
February 16, 2016 17:32
256977a
to
47deb4d
Compare
dawagner
changed the title
WIP: don't leak asio headers from libremote-processor
Don't leak asio headers from libremote-processor
Feb 16, 2016
dawagner
force-pushed
the
dont-leak-asio-headers
branch
from
February 22, 2016 11:11
cf16f40
to
42472b7
Compare
We need CMake 3.x in order to have "interface" libraries (libs with no build instructions but useful for usage requirement forwarding of header-only libraries). Signed-off-by: David Wagner <[email protected]>
dawagner
force-pushed
the
dont-leak-asio-headers
branch
from
February 22, 2016 12:55
42472b7
to
417bb00
Compare
Introduce an asio stub. In such a case, libremote-processor becomes useless but still acts as if it was working correctly. This is an easy way to have a version of libparameter that does not embed any networking code, which is required in some case for security compliance reasons. This can be achieved by turning the NETWORKING option OFF when configuring the CMake project. Signed-off-by: David Wagner <[email protected]>
Compile-out test-platform and remote-process when NETWORKING==OFF. Also, have the Parameter Framework fail to start if the user requested the remote interface to be started but compiled networking support out at the same time. Signed-off-by: David Wagner <[email protected]>
Explain how optional dependencies can be avoided. Signed-off-by: David Wagner <[email protected]>
dawagner
force-pushed
the
dont-leak-asio-headers
branch
3 times, most recently
from
February 23, 2016 14:03
7e17e6c
to
7c0b65b
Compare
Signed-off-by: David Wagner <[email protected]>
krocard
added a commit
that referenced
this pull request
Feb 25, 2016
Make network dependency optional - Add cmake option NETWORKING to stub ASIO - If networking is requested (tunning allowed), the PF will fail to start - Require cmake 3.0.0 for asio stub INTERFACE lib. - If networking is off, remove the asio dependency. Internal: Don't leak asio headers from libremote-processor.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make network dependency optional
Internal: Don't leak asio headers from libremote-processor.
FowardDecl
template class in the utility lib?80.30%