Skip to content

iceoryx_binding_c/enums.h🔗

Types🔗

Name
enum iox_SubscriberState { SubscriberState_HAS_DATA}
describes states which can be triggered by a subscriber
enum iox_SubscriberEvent { SubscriberEvent_DATA_RECEIVED}
describes events which can be triggered by a subscriber
enum iox_SubscribeState { SubscribeState_NOT_SUBSCRIBED = 0, SubscribeState_SUBSCRIBE_REQUESTED, SubscribeState_SUBSCRIBED, SubscribeState_UNSUBSCRIBE_REQUESTED, SubscribeState_WAIT_FOR_OFFER, SubscribeState_UNDEFINED_ERROR}
describes the current state of a subscriber
enum iox_ClientEvent { ClientEvent_RESPONSE_RECEIVED}
describes events which can be triggered by a client
enum iox_ClientState { ClientState_HAS_RESPONSE}
describes states which can be triggered by a client
enum iox_ServerEvent { ServerEvent_REQUEST_RECEIVED}
describes events which can be triggered by a server
enum iox_ServerState { ServerState_HAS_REQUEST}
describes states which can be triggered by a server
enum iox_ConnectionState { ConnectionState_NOT_CONNECTED = 0, ConnectionState_CONNECT_REQUESTED, ConnectionState_CONNECTED, ConnectionState_DISCONNECT_REQUESTED, ConnectionState_WAIT_FOR_OFFER}
describes the current connection state of a client
enum iox_ChunkReceiveResult { ChunkReceiveResult_TOO_MANY_CHUNKS_HELD_IN_PARALLEL, ChunkReceiveResult_NO_CHUNK_AVAILABLE, ChunkReceiveResult_UNDEFINED_ERROR, ChunkReceiveResult_SUCCESS}
describes the state of getChunk in the subscriber
enum iox_ServiceDiscoveryEvent { ServiceDiscoveryEvent_SERVICE_REGISTRY_CHANGED}
describes events which can be triggered by a service discovery
enum iox_QueueFullPolicy { QueueFullPolicy_BLOCK_PRODUCER, QueueFullPolicy_DISCARD_OLDEST_DATA}
Used by consumers to request a specific behavior from the producer; describes whether a producer blocks when consumer queue is full.
enum iox_ConsumerTooSlowPolicy { ConsumerTooSlowPolicy_WAIT_FOR_CONSUMER, ConsumerTooSlowPolicy_DISCARD_OLDEST_DATA}
Used by producers how to adjust to slow consumer; describes whether a producer blocks when consumer queue is full.
enum iox_AllocationResult { AllocationResult_NO_MEMPOOLS_AVAILABLE, AllocationResult_RUNNING_OUT_OF_CHUNKS, AllocationResult_TOO_MANY_CHUNKS_ALLOCATED_IN_PARALLEL, AllocationResult_INVALID_CHUNK, AllocationResult_INVALID_PARAMETER_FOR_USER_PAYLOAD_OR_USER_HEADER, AllocationResult_UNDEFINED_ERROR, AllocationResult_INVALID_PARAMETER_FOR_CHUNK, AllocationResult_INVALID_PARAMETER_FOR_REQUEST_HEADER, AllocationResult_SUCCESS}
state of allocateChunk
enum iox_ClientSendResult { ClientSendResult_SUCCESS, ClientSendResult_UNDEFINED_ERROR, ClientSendResult_NO_CONNECT_REQUESTED, ClientSendResult_SERVER_NOT_AVAILABLE, ClientSendResult_INVALID_REQUEST}
client send result
enum iox_ServerSendResult { ServerSendResult_SUCCESS, ServerSendResult_UNDEFINED_ERROR, ServerSendResult_NOT_OFFERED, ServerSendResult_CLIENT_NOT_AVAILABLE, ServerSendResult_INVALID_RESPONSE}
server send result
enum iox_WaitSetResult { WaitSetResult_WAIT_SET_FULL, WaitSetResult_ALREADY_ATTACHED, WaitSetResult_UNDEFINED_ERROR, WaitSetResult_SUCCESS}
used to describe if attaching an object to a waitset was successful or the kind of attachment error
enum iox_ListenerResult { ListenerResult_LISTENER_FULL, ListenerResult_EVENT_ALREADY_ATTACHED, ListenerResult_EMPTY_EVENT_CALLBACK, ListenerResult_EMPTY_INVALIDATION_CALLBACK, ListenerResult_UNDEFINED_ERROR, ListenerResult_SUCCESS}
used to describe if attaching an object to a listener was successful or the kind of attachment error
enum iox_ServerRequestResult
enum iox_MessagingPattern { MessagingPattern_PUB_SUB, MessagingPattern_REQ_RES}
used to describe the messaging pattern

Types Documentation🔗

enum iox_SubscriberState🔗

Enumerator Value Description
SubscriberState_HAS_DATA

describes states which can be triggered by a subscriber

enum iox_SubscriberEvent🔗

Enumerator Value Description
SubscriberEvent_DATA_RECEIVED

describes events which can be triggered by a subscriber

enum iox_SubscribeState🔗

Enumerator Value Description
SubscribeState_NOT_SUBSCRIBED 0
SubscribeState_SUBSCRIBE_REQUESTED
SubscribeState_SUBSCRIBED
SubscribeState_UNSUBSCRIBE_REQUESTED
SubscribeState_WAIT_FOR_OFFER
SubscribeState_UNDEFINED_ERROR

describes the current state of a subscriber

enum iox_ClientEvent🔗

Enumerator Value Description
ClientEvent_RESPONSE_RECEIVED

describes events which can be triggered by a client

enum iox_ClientState🔗

Enumerator Value Description
ClientState_HAS_RESPONSE

describes states which can be triggered by a client

enum iox_ServerEvent🔗

Enumerator Value Description
ServerEvent_REQUEST_RECEIVED

describes events which can be triggered by a server

enum iox_ServerState🔗

Enumerator Value Description
ServerState_HAS_REQUEST

describes states which can be triggered by a server

enum iox_ConnectionState🔗

Enumerator Value Description
ConnectionState_NOT_CONNECTED 0
ConnectionState_CONNECT_REQUESTED
ConnectionState_CONNECTED
ConnectionState_DISCONNECT_REQUESTED
ConnectionState_WAIT_FOR_OFFER

describes the current connection state of a client

enum iox_ChunkReceiveResult🔗

Enumerator Value Description
ChunkReceiveResult_TOO_MANY_CHUNKS_HELD_IN_PARALLEL
ChunkReceiveResult_NO_CHUNK_AVAILABLE
ChunkReceiveResult_UNDEFINED_ERROR
ChunkReceiveResult_SUCCESS

describes the state of getChunk in the subscriber

enum iox_ServiceDiscoveryEvent🔗

Enumerator Value Description
ServiceDiscoveryEvent_SERVICE_REGISTRY_CHANGED

describes events which can be triggered by a service discovery

enum iox_QueueFullPolicy🔗

Enumerator Value Description
QueueFullPolicy_BLOCK_PRODUCER
QueueFullPolicy_DISCARD_OLDEST_DATA

Used by consumers to request a specific behavior from the producer; describes whether a producer blocks when consumer queue is full.

enum iox_ConsumerTooSlowPolicy🔗

Enumerator Value Description
ConsumerTooSlowPolicy_WAIT_FOR_CONSUMER
ConsumerTooSlowPolicy_DISCARD_OLDEST_DATA

Used by producers how to adjust to slow consumer; describes whether a producer blocks when consumer queue is full.

enum iox_AllocationResult🔗

Enumerator Value Description
AllocationResult_NO_MEMPOOLS_AVAILABLE
AllocationResult_RUNNING_OUT_OF_CHUNKS
AllocationResult_TOO_MANY_CHUNKS_ALLOCATED_IN_PARALLEL
AllocationResult_INVALID_CHUNK
AllocationResult_INVALID_PARAMETER_FOR_USER_PAYLOAD_OR_USER_HEADER
AllocationResult_UNDEFINED_ERROR
AllocationResult_INVALID_PARAMETER_FOR_CHUNK
AllocationResult_INVALID_PARAMETER_FOR_REQUEST_HEADER
AllocationResult_SUCCESS

state of allocateChunk

enum iox_ClientSendResult🔗

Enumerator Value Description
ClientSendResult_SUCCESS
ClientSendResult_UNDEFINED_ERROR
ClientSendResult_NO_CONNECT_REQUESTED
ClientSendResult_SERVER_NOT_AVAILABLE
ClientSendResult_INVALID_REQUEST

client send result

enum iox_ServerSendResult🔗

Enumerator Value Description
ServerSendResult_SUCCESS
ServerSendResult_UNDEFINED_ERROR
ServerSendResult_NOT_OFFERED
ServerSendResult_CLIENT_NOT_AVAILABLE
ServerSendResult_INVALID_RESPONSE

server send result

enum iox_WaitSetResult🔗

Enumerator Value Description
WaitSetResult_WAIT_SET_FULL
WaitSetResult_ALREADY_ATTACHED
WaitSetResult_UNDEFINED_ERROR
WaitSetResult_SUCCESS

used to describe if attaching an object to a waitset was successful or the kind of attachment error

enum iox_ListenerResult🔗

Enumerator Value Description
ListenerResult_LISTENER_FULL
ListenerResult_EVENT_ALREADY_ATTACHED
ListenerResult_EMPTY_EVENT_CALLBACK
ListenerResult_EMPTY_INVALIDATION_CALLBACK
ListenerResult_UNDEFINED_ERROR
ListenerResult_SUCCESS

used to describe if attaching an object to a listener was successful or the kind of attachment error

enum iox_ServerRequestResult🔗

Enumerator Value Description
ServerRequestResult_TOO_MANY_REQUESTS_HELD_IN_PARALLEL
ServerRequestResult_NO_PENDING_REQUESTS
ServerRequestResult_UNDEFINED_CHUNK_RECEIVE_ERROR
ServerRequestResult_NO_PENDING_REQUESTS_AND_SERVER_DOES_NOT_OFFER
ServerRequestResult_SUCCESS

enum iox_MessagingPattern🔗

Enumerator Value Description
MessagingPattern_PUB_SUB
MessagingPattern_REQ_RES

used to describe the messaging pattern

Source code🔗

// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2022 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_ENUMS_H
#define IOX_BINDING_C_ENUMS_H

enum iox_SubscriberState
{
    SubscriberState_HAS_DATA,
};

enum iox_SubscriberEvent
{
    SubscriberEvent_DATA_RECEIVED,
};

enum iox_SubscribeState
{
    SubscribeState_NOT_SUBSCRIBED = 0,
    SubscribeState_SUBSCRIBE_REQUESTED,
    SubscribeState_SUBSCRIBED,
    SubscribeState_UNSUBSCRIBE_REQUESTED,
    SubscribeState_WAIT_FOR_OFFER,
    SubscribeState_UNDEFINED_ERROR,
};

enum iox_ClientEvent
{
    ClientEvent_RESPONSE_RECEIVED
};

enum iox_ClientState
{
    ClientState_HAS_RESPONSE
};

enum iox_ServerEvent
{
    ServerEvent_REQUEST_RECEIVED
};

enum iox_ServerState
{
    ServerState_HAS_REQUEST
};

enum iox_ConnectionState
{
    ConnectionState_NOT_CONNECTED = 0,
    ConnectionState_CONNECT_REQUESTED,
    ConnectionState_CONNECTED,
    ConnectionState_DISCONNECT_REQUESTED,
    ConnectionState_WAIT_FOR_OFFER
};

enum iox_ChunkReceiveResult
{
    ChunkReceiveResult_TOO_MANY_CHUNKS_HELD_IN_PARALLEL,
    ChunkReceiveResult_NO_CHUNK_AVAILABLE,
    ChunkReceiveResult_UNDEFINED_ERROR,
    ChunkReceiveResult_SUCCESS,
};

enum iox_ServiceDiscoveryEvent
{
    ServiceDiscoveryEvent_SERVICE_REGISTRY_CHANGED
};

enum iox_QueueFullPolicy
{
    QueueFullPolicy_BLOCK_PRODUCER,
    QueueFullPolicy_DISCARD_OLDEST_DATA,
};

enum iox_ConsumerTooSlowPolicy
{
    ConsumerTooSlowPolicy_WAIT_FOR_CONSUMER,
    ConsumerTooSlowPolicy_DISCARD_OLDEST_DATA,
};

enum iox_AllocationResult
{
    AllocationResult_NO_MEMPOOLS_AVAILABLE,
    AllocationResult_RUNNING_OUT_OF_CHUNKS,
    AllocationResult_TOO_MANY_CHUNKS_ALLOCATED_IN_PARALLEL,
    AllocationResult_INVALID_CHUNK,
    AllocationResult_INVALID_PARAMETER_FOR_USER_PAYLOAD_OR_USER_HEADER,
    AllocationResult_UNDEFINED_ERROR,
    AllocationResult_INVALID_PARAMETER_FOR_CHUNK,
    AllocationResult_INVALID_PARAMETER_FOR_REQUEST_HEADER,
    AllocationResult_SUCCESS,
};

enum iox_ClientSendResult
{
    ClientSendResult_SUCCESS,
    ClientSendResult_UNDEFINED_ERROR,
    ClientSendResult_NO_CONNECT_REQUESTED,
    ClientSendResult_SERVER_NOT_AVAILABLE,
    ClientSendResult_INVALID_REQUEST,
};

enum iox_ServerSendResult
{
    ServerSendResult_SUCCESS,
    ServerSendResult_UNDEFINED_ERROR,
    ServerSendResult_NOT_OFFERED,
    ServerSendResult_CLIENT_NOT_AVAILABLE,
    ServerSendResult_INVALID_RESPONSE,
};

enum iox_WaitSetResult
{
    WaitSetResult_WAIT_SET_FULL,
    WaitSetResult_ALREADY_ATTACHED,
    WaitSetResult_UNDEFINED_ERROR,
    WaitSetResult_SUCCESS
};

enum iox_ListenerResult
{
    ListenerResult_LISTENER_FULL,
    ListenerResult_EVENT_ALREADY_ATTACHED,
    ListenerResult_EMPTY_EVENT_CALLBACK,
    ListenerResult_EMPTY_INVALIDATION_CALLBACK,
    ListenerResult_UNDEFINED_ERROR,
    ListenerResult_SUCCESS
};

enum iox_ServerRequestResult
{
    ServerRequestResult_TOO_MANY_REQUESTS_HELD_IN_PARALLEL,
    ServerRequestResult_NO_PENDING_REQUESTS,
    ServerRequestResult_UNDEFINED_CHUNK_RECEIVE_ERROR,
    ServerRequestResult_NO_PENDING_REQUESTS_AND_SERVER_DOES_NOT_OFFER,
    ServerRequestResult_SUCCESS
};

enum iox_MessagingPattern
{
    MessagingPattern_PUB_SUB,
    MessagingPattern_REQ_RES
};

#endif

Updated on 2 April 2022 at 16:37:47 CEST