Skip to content

iceoryx_binding_c/types.h🔗

Classes🔗

Name
struct iox_ws_storage_t_
struct iox_user_trigger_storage_t_
struct iox_sub_storage_t_
struct iox_pub_storage_t_
struct iox_listener_storage_t_
struct iox_chunk_header_t
handle of the chunk header

Types🔗

Name
typedef struct iox_ws_storage_t_ iox_ws_storage_t
typedef struct iox_user_trigger_storage_t_ iox_user_trigger_storage_t
typedef struct iox_sub_storage_t_ iox_sub_storage_t
typedef struct iox_pub_storage_t_ iox_pub_storage_t
typedef struct iox_listener_storage_t_ iox_listener_storage_t

Defines🔗

Name
IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT
IOX_C_CHUNK_NO_USER_HEADER_SIZE
IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT

Types Documentation🔗

typedef iox_ws_storage_t🔗

typedef struct iox_ws_storage_t_ iox_ws_storage_t;

typedef iox_user_trigger_storage_t🔗

typedef struct iox_user_trigger_storage_t_ iox_user_trigger_storage_t;

typedef iox_sub_storage_t🔗

typedef struct iox_sub_storage_t_ iox_sub_storage_t;

typedef iox_pub_storage_t🔗

typedef struct iox_pub_storage_t_ iox_pub_storage_t;

typedef iox_listener_storage_t🔗

typedef struct iox_listener_storage_t_ iox_listener_storage_t;

Macro Documentation🔗

define IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT🔗

#define IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT 8

define IOX_C_CHUNK_NO_USER_HEADER_SIZE🔗

#define IOX_C_CHUNK_NO_USER_HEADER_SIZE 0

define IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT🔗

#define IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT 1

Source code🔗

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

#include "internal/c2cpp_binding.h"

#define IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT 8
#define IOX_C_CHUNK_NO_USER_HEADER_SIZE 0
#define IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT 1



struct iox_ws_storage_t_
{
    // the value of the array size is the result of the following formula:
    // sizeof(WaitSet) / 8
    uint64_t do_not_touch_me[2965];
};
typedef struct iox_ws_storage_t_ iox_ws_storage_t;

struct iox_user_trigger_storage_t_
{
    // the value of the array size is the result of the following formula:
    // sizeof(UserTrigger) / 8
#if defined(__APPLE__)
    uint64_t do_not_touch_me[17];
#else
    uint64_t do_not_touch_me[14];
#endif
};
typedef struct iox_user_trigger_storage_t_ iox_user_trigger_storage_t;

struct iox_sub_storage_t_
{
    // the value of the array size is the result of the following formula:
    // sizeof(cpp2c_Subscriber) / 8
#if defined(__APPLE__)
    uint64_t do_not_touch_me[17];
#else
    uint64_t do_not_touch_me[14];
#endif
};
typedef struct iox_sub_storage_t_ iox_sub_storage_t;

struct iox_pub_storage_t_
{
    // the value of the array size is the result of the following formula:
    // sizeof(cpp2c_Publisher) / 8
    uint64_t do_not_touch_me[2];
};
typedef struct iox_pub_storage_t_ iox_pub_storage_t;

struct iox_listener_storage_t_
{
    // the value of the array size is the result of the following formula:
    // sizeof(Listener) / 8
#if defined(__APPLE__)
    uint64_t do_not_touch_me[2643];
#else
    uint64_t do_not_touch_me[2567];
#endif
};
typedef struct iox_listener_storage_t_ iox_listener_storage_t;

typedef struct
{
    // could be empty but then we get `struct has no members` warning
    uint8_t do_not_touch_me[1];
} iox_chunk_header_t;

#endif

Updated on 31 May 2022 at 15:29:16 CEST