iceoryx_doc  1.0.1
cpp2c_enum_translation.hpp
1 // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // SPDX-License-Identifier: Apache-2.0
17 
18 #ifndef IOX_BINDING_C_CPP2C_ENUM_TRANSLATION_H
19 #define IOX_BINDING_C_CPP2C_ENUM_TRANSLATION_H
20 
21 #include "iceoryx_binding_c/enums.h"
22 
23 #include "iceoryx_posh/iceoryx_posh_types.hpp"
24 #include "iceoryx_posh/internal/popo/building_blocks/chunk_receiver.hpp"
25 #include "iceoryx_posh/internal/popo/building_blocks/chunk_sender.hpp"
26 #include "iceoryx_posh/popo/listener.hpp"
27 #include "iceoryx_posh/popo/wait_set.hpp"
28 
29 namespace cpp2c
30 {
31 iox_SubscribeState subscribeState(const iox::SubscribeState value) noexcept;
32 iox_ChunkReceiveResult chunkReceiveResult(const iox::popo::ChunkReceiveResult value) noexcept;
33 iox_AllocationResult allocationResult(const iox::popo::AllocationError value) noexcept;
34 iox_WaitSetResult waitSetResult(const iox::popo::WaitSetError value) noexcept;
35 iox_ListenerResult listenerResult(const iox::popo::ListenerError value) noexcept;
36 iox_SubscriberTooSlowPolicy subscriberTooSlowPolicy(const iox::popo::SubscriberTooSlowPolicy policy);
37 iox_QueueFullPolicy queueFullPolicy(const iox::popo::QueueFullPolicy policy);
38 } // namespace cpp2c
39 
40 #endif