1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! API in rcl/init_options.h

use crate::*;

#[repr(C)]
#[derive(Debug)]
struct rcl_init_options_impl_t {
    _unused: [u8; 0],
}
/// Encapsulation of init options and implementation defined init options.
#[repr(C)]
#[derive(Debug)]
pub struct rcl_init_options_t {
    /// Implementation specific pointer.
    impl_: *mut rcl_init_options_impl_t,
}

extern "C" {
    /// Return a zero initialized rcl_init_options_t struct.
    pub fn rcl_get_zero_initialized_init_options() -> rcl_init_options_t;

    /// Initialize given init_options with the default values and implementation specific values.
    pub fn rcl_init_options_init(
        init_options: *mut rcl_init_options_t,
        allocator: rcl_allocator_t,
    ) -> rcl_ret_t;

    /// Finalize the given init_options.
    pub fn rcl_init_options_fini(init_options: *mut rcl_init_options_t) -> rcl_ret_t;
}