File validation.hpp

File List > astutedds > rmw > validation.hpp

Go to the documentation of this file

//
// Copyright (c) 2026, Astute Systems PTY LTD
//
// This file is part of the AstuteDDS RMW implementation.
//
// See the commercial LICENSE file in the project root for full license details.
//

#pragma once

#include <rmw/names_and_types.h>
#include <rmw/qos_profiles.h>
#include <rmw/rmw.h>
#include <rosidl_runtime_c/service_type_support_struct.h>

rmw_ret_t
validate_count_args(
    const rmw_node_t * node,
    const char *       name,
    size_t *           count);

rmw_ret_t
validate_srv_create_args(
    const rmw_node_t *                    node,
    const rosidl_service_type_support_t * type_support,
    const char *                          service_name,
    const rmw_qos_profile_t *             qos_profile);

rmw_ret_t
validate_by_node_args(
    const rmw_node_t *      node,
    rcutils_allocator_t *   allocator,
    const char *            node_name,
    const char *            node_namespace,
    rmw_names_and_types_t * out);