forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#378 merge latest master
Signed-off-by: Dietrich Krönke <[email protected]>
- Loading branch information
Showing
131 changed files
with
4,399 additions
and
795 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Intermediate examples | ||
|
||
{! ./../iceoryx_examples/callbacks/README.md !} | ||
{! ./../iceoryx_examples/waitset/README.md !} | ||
{! ./../iceoryx_examples/waitset_in_c/README.md !} | ||
{! ./../iceoryx_examples/singleprocess/README.md !} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef IOX_BINDING_C_CHUNK_H | ||
#define IOX_BINDING_C_CHUNK_H | ||
|
||
#include "iceoryx_binding_c/internal/c2cpp_binding.h" | ||
|
||
/// @brief handle of the chunk header | ||
typedef void* iox_chunk_header_t; | ||
|
||
/// @brief gets the payload from the chunk header | ||
/// @param[in] header pointer to the chunk header | ||
/// @return pointer to the payload | ||
void* iox_chunk_header_to_payload(iox_chunk_header_t const header); | ||
|
||
/// @brief gets the chunk header from the payload | ||
/// @param[in] payload pointer to the payload | ||
/// @return pointer to the chunk header | ||
iox_chunk_header_t iox_chunk_payload_to_header(const void* const payload); | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "iceoryx_posh/mepoo/chunk_header.hpp" | ||
|
||
|
||
extern "C" { | ||
#include "iceoryx_binding_c/chunk.h" | ||
} | ||
|
||
using namespace iox::mepoo; | ||
|
||
void* iox_chunk_header_to_payload(iox_chunk_header_t const header) | ||
{ | ||
return reinterpret_cast<ChunkHeader*>(header)->payload(); | ||
} | ||
|
||
iox_chunk_header_t iox_chunk_payload_to_header(const void* const payload) | ||
{ | ||
return ChunkHeader::fromPayload(payload); | ||
} |
Oops, something went wrong.