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
struct iox_client_storage_t
has exactly the size required to store the underlying object of iox_client_t
struct iox_server_storage_t
has exactly the size required to store the underlying object of iox_server_t
struct iox_service_discovery_storage_t
has exactly the size required to store the underlying object of iox_service_discovery_t

Defines🔗

Name
IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT
IOX_C_CHUNK_NO_USER_HEADER_SIZE
IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT

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 - 2022 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



typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_ws_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_user_trigger_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_sub_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_pub_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} 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;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_client_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_server_storage_t;

typedef struct
{
    // only size for pointer is necessary
    uint64_t do_not_touch_me[1];
} iox_service_discovery_storage_t;

#endif

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