-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eclipse-iceoryx:main' into iox-#2330-add_notify_systemd
- Loading branch information
Showing
198 changed files
with
1,172 additions
and
934 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
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
- run: ./tools/scripts/clang_format.sh check | ||
- run: ./tools/scripts/check_test_ids.sh | ||
- run: ./tools/scripts/check_invalid_characters.sh | ||
- run: ./tools/scripts/check_atomic_usage.sh | ||
- run: ./tools/ci/cmake-linter.sh | ||
|
||
check-status-of-nightly-action: | ||
|
@@ -54,17 +55,24 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: pre-flight-check | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: egor-tensin/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install iceoryx dependencies and clang-tidy | ||
uses: ./.github/actions/install-iceoryx-deps-and-clang | ||
- name: Setup GCC | ||
uses: egor-tensin/[email protected] | ||
with: | ||
# gcc 8.3 is compiler used in QNX 7.1 | ||
version: 8 | ||
platform: x64 | ||
- uses: jwlawson/[email protected] | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.16.3' # version used in Ubuntu 20.04 LTS | ||
- run: ./tools/ci/build-test-ubuntu.sh | ||
|
||
|
||
|
||
build-test-windows-msvc: | ||
# prevent stuck jobs consuming runners for 6 hours | ||
timeout-minutes: 60 | ||
|
@@ -171,6 +179,18 @@ jobs: | |
- name: Run Thread Sanitizer | ||
run: ./tools/ci/build-test-ubuntu-with-sanitizers.sh clang tsan | ||
|
||
build-test-ubuntu-32-bit: | ||
# prevent stuck jobs consuming runners for 6 hours | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
needs: pre-flight-check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install iceoryx dependencies and clang-tidy | ||
uses: ./.github/actions/install-iceoryx-deps-and-clang | ||
- run: ./tools/ci/build-test-ubuntu.sh 32-bit-x86 | ||
|
||
# Bazel sanity check | ||
build-test-ubuntu-bazel: | ||
# prevent stuck jobs consuming runners for 6 hours | ||
|
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,4 +1,5 @@ | ||
// Copyright (c) 2022 by Apex.AI Inc. All rights reserved. | ||
// Copyright (c) 2024 by Michael Bentley <[email protected]>. 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. | ||
|
@@ -23,7 +24,7 @@ | |
#include "iceoryx_binding_c/types.h" | ||
|
||
/// @brief client handle | ||
typedef CLASS UntypedClient* iox_client_t; | ||
typedef IOX_C_CLASS UntypedClient* iox_client_t; | ||
|
||
/// @brief options to be set for a client | ||
typedef struct | ||
|
@@ -38,10 +39,10 @@ typedef struct | |
bool connectOnCreate; | ||
|
||
/// @brief Sets whether the server blocks when the client response queue is full | ||
ENUM iox_QueueFullPolicy responseQueueFullPolicy; | ||
enum iox_QueueFullPolicy responseQueueFullPolicy; | ||
|
||
/// @brief Sets whether the client blocks when the server request queue is full | ||
ENUM iox_ConsumerTooSlowPolicy serverTooSlowPolicy; | ||
enum iox_ConsumerTooSlowPolicy serverTooSlowPolicy; | ||
|
||
/// @brief this value will be set exclusively by 'iox_client_options_init' and is not supposed to be modified | ||
/// otherwise | ||
|
@@ -87,9 +88,8 @@ void iox_client_deinit(iox_client_t const self); | |
/// describes the error | ||
/// @note for the user-payload alignment 'IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT' is used | ||
/// for a custom user-payload alignment please use 'iox_client_loan_aligned_request' | ||
ENUM iox_AllocationResult iox_client_loan_request(iox_client_t const self, | ||
void** const payload, | ||
const uint64_t payloadSize); | ||
enum iox_AllocationResult | ||
iox_client_loan_request(iox_client_t const self, void** const payload, const uint64_t payloadSize); | ||
|
||
/// @brief allocates a request in the shared memory with a custom alignment for the user-payload | ||
/// @param[in] self handle of the client | ||
|
@@ -98,7 +98,7 @@ ENUM iox_AllocationResult iox_client_loan_request(iox_client_t const self, | |
/// @param[in] payloadAlignment user-payload alignment of the allocated request | ||
/// @return on success it returns AllocationResult_SUCCESS otherwise a value which | ||
/// describes the error | ||
ENUM iox_AllocationResult iox_client_loan_aligned_request(iox_client_t const self, | ||
enum iox_AllocationResult iox_client_loan_aligned_request(iox_client_t const self, | ||
void** const payload, | ||
const uint64_t payloadSize, | ||
const uint32_t payloadAlignment); | ||
|
@@ -114,7 +114,7 @@ void iox_client_release_request(iox_client_t const self, void* const payload); | |
/// @param[in] payload pointer to the user-payload of the request which should be send | ||
/// @return on success it returns ClientSendResult_SUCCESS otherwise a value which | ||
/// describes the error | ||
ENUM iox_ClientSendResult iox_client_send(iox_client_t const self, void* const payload); | ||
enum iox_ClientSendResult iox_client_send(iox_client_t const self, void* const payload); | ||
|
||
/// @brief connects to the service | ||
/// @param[in] self handle to the client | ||
|
@@ -128,14 +128,14 @@ void iox_client_disconnect(iox_client_t const self); | |
/// @param[in] self handle to the client | ||
/// @return ConnectionState_CONNECTED when successfully connected otherwise an enum which | ||
/// describes the current state | ||
ENUM iox_ConnectionState iox_client_get_connection_state(iox_client_t const self); | ||
enum iox_ConnectionState iox_client_get_connection_state(iox_client_t const self); | ||
|
||
/// @brief retrieve a received respone | ||
/// @param[in] self handle to the client | ||
/// @param[in] payload pointer in which the pointer to the user-payload of the response is stored | ||
/// @return if a chunk could be received it returns ChunkReceiveResult_SUCCESS otherwise | ||
/// an enum which describes the error | ||
ENUM iox_ChunkReceiveResult iox_client_take_response(iox_client_t const self, const void** const payload); | ||
enum iox_ChunkReceiveResult iox_client_take_response(iox_client_t const self, const void** const payload); | ||
|
||
/// @brief release a previously acquired response (via iox_client_take_response) | ||
/// @param[in] self handle to the client | ||
|
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,4 +1,5 @@ | ||
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved. | ||
// Copyright (c) 2024 by Michael Bentley <[email protected]>. 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. | ||
|
@@ -21,16 +22,14 @@ | |
|
||
#include <cstdint> | ||
|
||
#define CLASS class | ||
#define ENUM | ||
#define IOX_C_CLASS class | ||
|
||
#else | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#define CLASS struct | ||
#define ENUM enum | ||
#define IOX_C_CLASS struct | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// Copyright (c) 2021 - 2022 by Apex.AI Inc. All rights reserved. | ||
// Copyright (c) 2024 by Michael Bentley <[email protected]>. 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. | ||
|
@@ -24,8 +25,8 @@ | |
|
||
namespace c2cpp | ||
{ | ||
iox::popo::ConsumerTooSlowPolicy consumerTooSlowPolicy(const ENUM iox_ConsumerTooSlowPolicy policy) noexcept; | ||
iox::popo::QueueFullPolicy queueFullPolicy(const ENUM iox_QueueFullPolicy policy) noexcept; | ||
iox::popo::ConsumerTooSlowPolicy consumerTooSlowPolicy(const enum iox_ConsumerTooSlowPolicy policy) noexcept; | ||
iox::popo::QueueFullPolicy queueFullPolicy(const enum iox_QueueFullPolicy policy) noexcept; | ||
iox::popo::SubscriberEvent subscriberEvent(const iox_SubscriberEvent value) noexcept; | ||
iox::popo::SubscriberState subscriberState(const iox_SubscriberState value) noexcept; | ||
|
||
|
Oops, something went wrong.