diff --git a/Cargo.lock b/Cargo.lock index 95df46589..8ca81fb33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3557,7 +3557,7 @@ dependencies = [ [[package]] name = "zenoh" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "ahash", "async-trait", @@ -3613,7 +3613,7 @@ dependencies = [ [[package]] name = "zenoh-buffers" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "zenoh-collections", ] @@ -3650,7 +3650,7 @@ dependencies = [ [[package]] name = "zenoh-codec" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "serde", "tracing", @@ -3663,12 +3663,12 @@ dependencies = [ [[package]] name = "zenoh-collections" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" [[package]] name = "zenoh-config" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "flume", "json5", @@ -3690,7 +3690,7 @@ dependencies = [ [[package]] name = "zenoh-core" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-global-executor", "lazy_static", @@ -3702,7 +3702,7 @@ dependencies = [ [[package]] name = "zenoh-crypto" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "aes", "hmac", @@ -3715,7 +3715,7 @@ dependencies = [ [[package]] name = "zenoh-ext" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "bincode", "flume", @@ -3734,7 +3734,7 @@ dependencies = [ [[package]] name = "zenoh-keyexpr" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "hashbrown 0.14.5", "keyed-set", @@ -3748,7 +3748,7 @@ dependencies = [ [[package]] name = "zenoh-link" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "zenoh-config", @@ -3766,7 +3766,7 @@ dependencies = [ [[package]] name = "zenoh-link-commons" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "flume", @@ -3790,7 +3790,7 @@ dependencies = [ [[package]] name = "zenoh-link-quic" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "base64 0.22.1", @@ -3821,7 +3821,7 @@ dependencies = [ [[package]] name = "zenoh-link-tcp" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "tokio", @@ -3839,7 +3839,7 @@ dependencies = [ [[package]] name = "zenoh-link-tls" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "base64 0.22.1", @@ -3869,7 +3869,7 @@ dependencies = [ [[package]] name = "zenoh-link-udp" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "socket2 0.5.6", @@ -3890,7 +3890,7 @@ dependencies = [ [[package]] name = "zenoh-link-unixsock_stream" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "futures", @@ -3910,7 +3910,7 @@ dependencies = [ [[package]] name = "zenoh-link-ws" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "futures-util", @@ -3931,7 +3931,7 @@ dependencies = [ [[package]] name = "zenoh-macros" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "proc-macro2", "quote", @@ -3942,7 +3942,7 @@ dependencies = [ [[package]] name = "zenoh-plugin-trait" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "libloading", "serde", @@ -3957,7 +3957,7 @@ dependencies = [ [[package]] name = "zenoh-protocol" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "const_format", "rand", @@ -3972,7 +3972,7 @@ dependencies = [ [[package]] name = "zenoh-result" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "anyhow", ] @@ -3980,7 +3980,7 @@ dependencies = [ [[package]] name = "zenoh-runtime" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "futures", "lazy_static", @@ -3995,7 +3995,7 @@ dependencies = [ [[package]] name = "zenoh-shm" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "bincode", @@ -4019,7 +4019,7 @@ dependencies = [ [[package]] name = "zenoh-sync" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "event-listener 5.3.1", "futures", @@ -4033,7 +4033,7 @@ dependencies = [ [[package]] name = "zenoh-task" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "futures", "tokio", @@ -4046,7 +4046,7 @@ dependencies = [ [[package]] name = "zenoh-transport" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-trait", "flume", @@ -4079,7 +4079,7 @@ dependencies = [ [[package]] name = "zenoh-util" version = "0.11.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#e1beef1b5f360be479aeaf17713fc01f83d8383e" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=dev/1.0.0#fc18f90310cd451a2f3d6e579dd9cfd9dba4bda6" dependencies = [ "async-std", "async-trait", diff --git a/include/zenoh_commons.h b/include/zenoh_commons.h index 82ae2e915..b37c18b97 100644 --- a/include/zenoh_commons.h +++ b/include/zenoh_commons.h @@ -756,13 +756,13 @@ typedef struct zc_context_t { */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) typedef struct zc_shm_provider_backend_callbacks_t { - void (*alloc_fn)(struct z_owned_chunk_alloc_result_t *out_result, - const struct z_loaned_memory_layout_t *layout, + void (*alloc_fn)(z_owned_chunk_alloc_result_t *out_result, + const z_loaned_memory_layout_t *layout, void *context); void (*free_fn)(const struct z_chunk_descriptor_t *chunk, void *context); size_t (*defragment_fn)(void *context); size_t (*available_fn)(void *context); - void (*layout_for_fn)(struct z_owned_memory_layout_t *layout, void *context); + void (*layout_for_fn)(z_owned_memory_layout_t *layout, void *context); } zc_shm_provider_backend_callbacks_t; #endif typedef struct z_task_attr_t { @@ -906,55 +906,54 @@ ZENOHC_API extern const char *Z_CONFIG_ADD_TIMESTAMP_KEY; ZENOHC_API extern const unsigned int Z_SHM_POSIX_PROTOCOL_ID; #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_alloc_layout_alloc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout); +void z_alloc_layout_alloc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_alloc_layout_alloc_gc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout); +void z_alloc_layout_alloc_gc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_alloc_layout_alloc_gc_defrag(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout); +void z_alloc_layout_alloc_gc_defrag(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_alloc_layout_alloc_gc_defrag_blocking(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout); +void z_alloc_layout_alloc_gc_defrag_blocking(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_alloc_layout_alloc_gc_defrag_dealloc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout); +void z_alloc_layout_alloc_gc_defrag_dealloc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_alloc_layout_check(const struct z_owned_alloc_layout_t *this_); +ZENOHC_API bool z_alloc_layout_check(const z_owned_alloc_layout_t *this_); #endif /** * Deletes Alloc Layout */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_alloc_layout_drop(struct z_owned_alloc_layout_t *this_); +ZENOHC_API void z_alloc_layout_drop(z_owned_alloc_layout_t *this_); #endif /** * Borrows Alloc Layout */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API -const struct z_loaned_alloc_layout_t *z_alloc_layout_loan(const struct z_owned_alloc_layout_t *this_); +ZENOHC_API const z_loaned_alloc_layout_t *z_alloc_layout_loan(const z_owned_alloc_layout_t *this_); #endif /** * Creates a new Alloc Layout for SHM Provider */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_alloc_layout_new(struct z_owned_alloc_layout_t *this_, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_alloc_layout_new(z_owned_alloc_layout_t *this_, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif @@ -962,45 +961,45 @@ z_error_t z_alloc_layout_new(struct z_owned_alloc_layout_t *this_, * Constructs Alloc Layout in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_alloc_layout_null(struct z_owned_alloc_layout_t *this_); +ZENOHC_API void z_alloc_layout_null(z_owned_alloc_layout_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_alloc_layout_threadsafe_alloc_gc_defrag_async(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_alloc_layout_t *layout, +z_error_t z_alloc_layout_threadsafe_alloc_gc_defrag_async(z_owned_buf_alloc_result_t *out_result, + const z_loaned_alloc_layout_t *layout, struct zc_threadsafe_context_t result_context, void (*result_callback)(void*, - struct z_owned_buf_alloc_result_t*)); + z_owned_buf_alloc_result_t*)); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_buf_alloc_result_check(const struct z_owned_buf_alloc_result_t *this_); +ZENOHC_API bool z_buf_alloc_result_check(const z_owned_buf_alloc_result_t *this_); #endif /** * Deletes Buf Alloc Result */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_buf_alloc_result_drop(struct z_owned_buf_alloc_result_t *this_); +ZENOHC_API void z_buf_alloc_result_drop(z_owned_buf_alloc_result_t *this_); #endif /** * Borrows Buf Alloc Result */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -const struct z_loaned_buf_alloc_result_t *z_buf_alloc_result_loan(const struct z_owned_buf_alloc_result_t *this_); +const z_loaned_buf_alloc_result_t *z_buf_alloc_result_loan(const z_owned_buf_alloc_result_t *this_); #endif /** * Constructs Buf Alloc Result in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_buf_alloc_result_null(struct z_owned_buf_alloc_result_t *this_); +ZENOHC_API void z_buf_alloc_result_null(z_owned_buf_alloc_result_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_buf_alloc_result_unwrap(struct z_owned_buf_alloc_result_t *alloc_result, - struct z_owned_shm_mut_t *out_buf, +z_error_t z_buf_alloc_result_unwrap(z_owned_buf_alloc_result_t *alloc_result, + z_owned_shm_mut_t *out_buf, enum z_alloc_error_t *out_error); #endif /** @@ -1062,7 +1061,7 @@ z_error_t z_bytes_deserialize_into_int8(const struct z_loaned_bytes_t *this_, #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API z_error_t z_bytes_deserialize_into_loaned_shm(const struct z_loaned_bytes_t *this_, - const struct z_loaned_shm_t **dst); + const z_loaned_shm_t **dst); #endif /** * Deserializes data into a mutably loaned SHM buffer @@ -1073,7 +1072,7 @@ z_error_t z_bytes_deserialize_into_loaned_shm(const struct z_loaned_bytes_t *thi #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API z_error_t z_bytes_deserialize_into_mut_loaned_shm(struct z_loaned_bytes_t *this_, - struct z_loaned_shm_t **dst); + z_loaned_shm_t **dst); #endif /** * Deserializes data into an owned SHM buffer by copying it's shared reference @@ -1084,7 +1083,7 @@ z_error_t z_bytes_deserialize_into_mut_loaned_shm(struct z_loaned_bytes_t *this_ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API z_error_t z_bytes_deserialize_into_owned_shm(const struct z_loaned_bytes_t *this_, - struct z_owned_shm_t *dst); + z_owned_shm_t *dst); #endif /** * Deserializes into a pair of `z_owned_bytes_t` objects. @@ -1286,9 +1285,7 @@ z_error_t z_bytes_serialize_from_pair(struct z_owned_bytes_t *this_, * Serializes from an immutable SHM buffer consuming it */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API -z_error_t z_bytes_serialize_from_shm(struct z_owned_bytes_t *this_, - struct z_owned_shm_t *shm); +ZENOHC_API z_error_t z_bytes_serialize_from_shm(struct z_owned_bytes_t *this_, z_owned_shm_t *shm); #endif /** * Serializes from an immutable SHM buffer copying it @@ -1296,7 +1293,7 @@ z_error_t z_bytes_serialize_from_shm(struct z_owned_bytes_t *this_, #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API void z_bytes_serialize_from_shm_copy(struct z_owned_bytes_t *this_, - const struct z_loaned_shm_t *shm); + const z_loaned_shm_t *shm); #endif /** * Serializes from a mutable SHM buffer consuming it @@ -1304,7 +1301,7 @@ void z_bytes_serialize_from_shm_copy(struct z_owned_bytes_t *this_, #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API z_error_t z_bytes_serialize_from_shm_mut(struct z_owned_bytes_t *this_, - struct z_owned_shm_mut_t *shm); + z_owned_shm_mut_t *shm); #endif /** * Serializes a slice by aliasing. @@ -1391,27 +1388,27 @@ z_error_t z_bytes_writer_write(struct z_loaned_bytes_writer_t *this_, * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_chunk_alloc_result_check(const struct z_owned_chunk_alloc_result_t *this_); +ZENOHC_API bool z_chunk_alloc_result_check(const z_owned_chunk_alloc_result_t *this_); #endif /** * Deletes Chunk Alloc Result */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_chunk_alloc_result_drop(struct z_owned_chunk_alloc_result_t *this_); +ZENOHC_API void z_chunk_alloc_result_drop(z_owned_chunk_alloc_result_t *this_); #endif /** * Borrows Chunk Alloc Result */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -const struct z_loaned_chunk_alloc_result_t *z_chunk_alloc_result_loan(const struct z_owned_chunk_alloc_result_t *this_); +const z_loaned_chunk_alloc_result_t *z_chunk_alloc_result_loan(const z_owned_chunk_alloc_result_t *this_); #endif /** * Creates a new Chunk Alloc Result with Error value */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_chunk_alloc_result_new_error(struct z_owned_chunk_alloc_result_t *this_, +void z_chunk_alloc_result_new_error(z_owned_chunk_alloc_result_t *this_, enum z_alloc_error_t alloc_error); #endif /** @@ -1419,14 +1416,14 @@ void z_chunk_alloc_result_new_error(struct z_owned_chunk_alloc_result_t *this_, */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_chunk_alloc_result_new_ok(struct z_owned_chunk_alloc_result_t *this_, +void z_chunk_alloc_result_new_ok(z_owned_chunk_alloc_result_t *this_, struct z_allocated_chunk_t allocated_chunk); #endif /** * Constructs Chunk Alloc Result in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_chunk_alloc_result_null(struct z_owned_chunk_alloc_result_t *this_); +ZENOHC_API void z_chunk_alloc_result_null(z_owned_chunk_alloc_result_t *this_); #endif /** * Get number of milliseconds passed since creation of `time`. @@ -2150,13 +2147,13 @@ enum z_keyexpr_intersection_level_t z_keyexpr_relation_to(const struct z_loaned_ * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_memory_layout_check(const struct z_owned_memory_layout_t *this_); +ZENOHC_API bool z_memory_layout_check(const z_owned_memory_layout_t *this_); #endif /** * Deletes Memory Layout */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_memory_layout_drop(struct z_owned_memory_layout_t *this_); +ZENOHC_API void z_memory_layout_drop(z_owned_memory_layout_t *this_); #endif /** * Deletes Memory Layout @@ -2165,21 +2162,21 @@ ZENOHC_API void z_memory_layout_drop(struct z_owned_memory_layout_t *this_); ZENOHC_API void z_memory_layout_get_data(size_t *out_size, struct z_alloc_alignment_t *out_alignment, - const struct z_loaned_memory_layout_t *this_); + const z_loaned_memory_layout_t *this_); #endif /** * Borrows Memory Layout */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -const struct z_loaned_memory_layout_t *z_memory_layout_loan(const struct z_owned_memory_layout_t *this_); +const z_loaned_memory_layout_t *z_memory_layout_loan(const z_owned_memory_layout_t *this_); #endif /** * Creates a new Memory Layout */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_memory_layout_new(struct z_owned_memory_layout_t *this_, +z_error_t z_memory_layout_new(z_owned_memory_layout_t *this_, size_t size, struct z_alloc_alignment_t alignment); #endif @@ -2187,7 +2184,7 @@ z_error_t z_memory_layout_new(struct z_owned_memory_layout_t *this_, * Constructs Memory Layout in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_memory_layout_null(struct z_owned_memory_layout_t *this_); +ZENOHC_API void z_memory_layout_null(z_owned_memory_layout_t *this_); #endif /** * Returns ``true`` if mutex is valid, ``false`` otherwise. @@ -2243,21 +2240,21 @@ z_error_t z_open(struct z_owned_session_t *this_, ZENOHC_API z_error_t z_open_with_custom_shm_clients(struct z_owned_session_t *this_, struct z_owned_config_t *config, - const struct z_loaned_shm_client_storage_t *shm_clients); + const z_loaned_shm_client_storage_t *shm_clients); #endif /** * Creates a new POSIX SHM Client */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API z_error_t z_posix_shm_client_new(struct z_owned_shm_client_t *this_); +ZENOHC_API z_error_t z_posix_shm_client_new(z_owned_shm_client_t *this_); #endif /** * Creates a new threadsafe SHM Provider */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_posix_shm_provider_new(struct z_owned_shm_provider_t *this_, - const struct z_loaned_memory_layout_t *layout); +z_error_t z_posix_shm_provider_new(z_owned_shm_provider_t *this_, + const z_loaned_memory_layout_t *layout); #endif /** * Returns the default value of #z_priority_t. @@ -2547,7 +2544,7 @@ ZENOHC_API uint64_t z_random_u64(void); */ ZENOHC_API uint8_t z_random_u8(void); #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API z_error_t z_ref_shm_client_storage_global(struct z_owned_shm_client_storage_t *this_); +ZENOHC_API z_error_t z_ref_shm_client_storage_global(z_owned_shm_client_storage_t *this_); #endif /** * Returns ``true`` if `reply` is valid, ``false`` otherwise. @@ -2844,26 +2841,26 @@ ZENOHC_API void z_session_null(struct z_owned_session_t *this_); * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_shm_check(const struct z_owned_shm_t *this_); +ZENOHC_API bool z_shm_check(const z_owned_shm_t *this_); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_shm_client_check(const struct z_owned_shm_client_t *this_); +ZENOHC_API bool z_shm_client_check(const z_owned_shm_client_t *this_); #endif /** * Deletes SHM Client */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_client_drop(struct z_owned_shm_client_t *this_); +ZENOHC_API void z_shm_client_drop(z_owned_shm_client_t *this_); #endif /** * Creates a new SHM Client */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_client_new(struct z_owned_shm_client_t *this_, +z_error_t z_shm_client_new(z_owned_shm_client_t *this_, struct zc_threadsafe_context_t context, struct zc_shm_client_callbacks_t callbacks); #endif @@ -2871,212 +2868,209 @@ z_error_t z_shm_client_new(struct z_owned_shm_client_t *this_, * Constructs SHM client in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_client_null(struct z_owned_shm_client_t *this_); +ZENOHC_API void z_shm_client_null(z_owned_shm_client_t *this_); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_shm_client_storage_check(const struct z_owned_shm_client_storage_t *this_); +ZENOHC_API bool z_shm_client_storage_check(const z_owned_shm_client_storage_t *this_); #endif /** * Derefs SHM Client Storage */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_client_storage_drop(struct z_owned_shm_client_storage_t *this_); +ZENOHC_API void z_shm_client_storage_drop(z_owned_shm_client_storage_t *this_); #endif /** * Borrows SHM Client Storage */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -const struct z_loaned_shm_client_storage_t *z_shm_client_storage_loan(const struct z_owned_shm_client_storage_t *this_); +const z_loaned_shm_client_storage_t *z_shm_client_storage_loan(const z_owned_shm_client_storage_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_client_storage_new(struct z_owned_shm_client_storage_t *this_, - const struct zc_loaned_shm_client_list_t *clients, +z_error_t z_shm_client_storage_new(z_owned_shm_client_storage_t *this_, + const zc_loaned_shm_client_list_t *clients, bool add_default_client_set); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API z_error_t z_shm_client_storage_new_default(struct z_owned_shm_client_storage_t *this_); +ZENOHC_API z_error_t z_shm_client_storage_new_default(z_owned_shm_client_storage_t *this_); #endif /** * Constructs SHM Client Storage in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_client_storage_null(struct z_owned_shm_client_storage_t *this_); +ZENOHC_API void z_shm_client_storage_null(z_owned_shm_client_storage_t *this_); #endif /** * Converts borrowed ZShm slice to owned ZShm slice by performing a shallow SHM reference copy */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_clone(const struct z_loaned_shm_t *this_, struct z_owned_shm_t *out); +ZENOHC_API void z_shm_clone(const z_loaned_shm_t *this_, z_owned_shm_t *out); #endif /** * @return the pointer of the ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API const unsigned char *z_shm_data(const struct z_loaned_shm_t *this_); +ZENOHC_API const unsigned char *z_shm_data(const z_loaned_shm_t *this_); #endif /** * Deletes ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_drop(struct z_owned_shm_t *this_); +ZENOHC_API void z_shm_drop(z_owned_shm_t *this_); #endif /** * Constructs ZShm slice from ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_from_mut(struct z_owned_shm_t *this_, struct z_owned_shm_mut_t *that); +ZENOHC_API void z_shm_from_mut(z_owned_shm_t *this_, z_owned_shm_mut_t *that); #endif /** * @return the length of the ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API size_t z_shm_len(const struct z_loaned_shm_t *this_); +ZENOHC_API size_t z_shm_len(const z_loaned_shm_t *this_); #endif /** * Borrows ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API const struct z_loaned_shm_t *z_shm_loan(const struct z_owned_shm_t *this_); +ZENOHC_API const z_loaned_shm_t *z_shm_loan(const z_owned_shm_t *this_); #endif /** * Mutably borrows ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API struct z_loaned_shm_t *z_shm_loan_mut(struct z_owned_shm_t *this_); +ZENOHC_API z_loaned_shm_t *z_shm_loan_mut(z_owned_shm_t *this_); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_shm_mut_check(const struct z_owned_shm_mut_t *this_); +ZENOHC_API bool z_shm_mut_check(const z_owned_shm_mut_t *this_); #endif /** * @return the mutable pointer of the ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API unsigned char *z_shm_mut_data_mut(struct z_loaned_shm_mut_t *this_); +ZENOHC_API unsigned char *z_shm_mut_data_mut(z_loaned_shm_mut_t *this_); #endif /** * Deletes ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_mut_drop(struct z_owned_shm_mut_t *this_); +ZENOHC_API void z_shm_mut_drop(z_owned_shm_mut_t *this_); #endif /** * @return the length of the ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API size_t z_shm_mut_len(const struct z_loaned_shm_mut_t *this_); +ZENOHC_API size_t z_shm_mut_len(const z_loaned_shm_mut_t *this_); #endif /** * Borrows ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API struct z_loaned_shm_mut_t *z_shm_mut_loan_mut(struct z_owned_shm_mut_t *this_); +ZENOHC_API z_loaned_shm_mut_t *z_shm_mut_loan_mut(z_owned_shm_mut_t *this_); #endif /** * Constructs ZShmMut slice in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_mut_null(struct z_owned_shm_mut_t *this_); +ZENOHC_API void z_shm_mut_null(z_owned_shm_mut_t *this_); #endif /** * Tries to construct ZShmMut slice from ZShm slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API -void z_shm_mut_try_from_immut(struct z_owned_shm_mut_t *this_, - struct z_owned_shm_t *that); +ZENOHC_API void z_shm_mut_try_from_immut(z_owned_shm_mut_t *this_, z_owned_shm_t *that); #endif /** * Constructs ZShm slice in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_null(struct z_owned_shm_t *this_); +ZENOHC_API void z_shm_null(z_owned_shm_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc_gc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc_gc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc_gc_defrag(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc_gc_defrag(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc_gc_defrag_async(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc_gc_defrag_async(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment, struct zc_threadsafe_context_t result_context, void (*result_callback)(void*, z_error_t, - struct z_owned_buf_alloc_result_t*)); + z_owned_buf_alloc_result_t*)); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc_gc_defrag_blocking(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc_gc_defrag_blocking(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -z_error_t z_shm_provider_alloc_gc_defrag_dealloc(struct z_owned_buf_alloc_result_t *out_result, - const struct z_loaned_shm_provider_t *provider, +z_error_t z_shm_provider_alloc_gc_defrag_dealloc(z_owned_buf_alloc_result_t *out_result, + const z_loaned_shm_provider_t *provider, size_t size, struct z_alloc_alignment_t alignment); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API size_t z_shm_provider_available(const struct z_loaned_shm_provider_t *provider); +ZENOHC_API size_t z_shm_provider_available(const z_loaned_shm_provider_t *provider); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool z_shm_provider_check(const struct z_owned_shm_provider_t *this_); +ZENOHC_API bool z_shm_provider_check(const z_owned_shm_provider_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_provider_defragment(const struct z_loaned_shm_provider_t *provider); +ZENOHC_API void z_shm_provider_defragment(const z_loaned_shm_provider_t *provider); #endif /** * Deletes SHM Provider */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_provider_drop(struct z_owned_shm_provider_t *this_); +ZENOHC_API void z_shm_provider_drop(z_owned_shm_provider_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_provider_garbage_collect(const struct z_loaned_shm_provider_t *provider); +ZENOHC_API void z_shm_provider_garbage_collect(const z_loaned_shm_provider_t *provider); #endif /** * Borrows SHM Provider */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API -const struct z_loaned_shm_provider_t *z_shm_provider_loan(const struct z_owned_shm_provider_t *this_); +ZENOHC_API const z_loaned_shm_provider_t *z_shm_provider_loan(const z_owned_shm_provider_t *this_); #endif #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_shm_provider_map(struct z_owned_shm_mut_t *out_result, - const struct z_loaned_shm_provider_t *provider, +void z_shm_provider_map(z_owned_shm_mut_t *out_result, + const z_loaned_shm_provider_t *provider, struct z_allocated_chunk_t allocated_chunk, size_t len); #endif @@ -3085,7 +3079,7 @@ void z_shm_provider_map(struct z_owned_shm_mut_t *out_result, */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_shm_provider_new(struct z_owned_shm_provider_t *this_, +void z_shm_provider_new(z_owned_shm_provider_t *this_, z_protocol_id_t id, struct zc_context_t context, struct zc_shm_provider_backend_callbacks_t callbacks); @@ -3094,14 +3088,14 @@ void z_shm_provider_new(struct z_owned_shm_provider_t *this_, * Constructs SHM Provider in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void z_shm_provider_null(struct z_owned_shm_provider_t *this_); +ZENOHC_API void z_shm_provider_null(z_owned_shm_provider_t *this_); #endif /** * Creates a new threadsafe SHM Provider */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -void z_shm_provider_threadsafe_new(struct z_owned_shm_provider_t *this_, +void z_shm_provider_threadsafe_new(z_owned_shm_provider_t *this_, z_protocol_id_t id, struct zc_threadsafe_context_t context, struct zc_shm_provider_backend_callbacks_t callbacks); @@ -3110,13 +3104,13 @@ void z_shm_provider_threadsafe_new(struct z_owned_shm_provider_t *this_, * Mutably borrows ZShm slice as borrowed ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API struct z_loaned_shm_mut_t *z_shm_try_mut(struct z_owned_shm_t *this_); +ZENOHC_API z_loaned_shm_mut_t *z_shm_try_mut(z_owned_shm_t *this_); #endif /** * Tries to reborrow mutably-borrowed ZShm slice as borrowed ZShmMut slice */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API struct z_loaned_shm_mut_t *z_shm_try_reloan_mut(struct z_loaned_shm_t *this_); +ZENOHC_API z_loaned_shm_mut_t *z_shm_try_reloan_mut(z_loaned_shm_t *this_); #endif /** * Puts current thread to sleep for specified amount of milliseconds. @@ -3838,46 +3832,46 @@ void zc_session_clone(const struct z_loaned_session_t *this_, #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API z_error_t zc_shm_client_list_add_client(z_protocol_id_t id, - struct z_owned_shm_client_t *client, - struct zc_loaned_shm_client_list_t *list); + z_owned_shm_client_t *client, + zc_loaned_shm_client_list_t *list); #endif /** * Returns ``true`` if `this` is valid. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API bool zc_shm_client_list_check(const struct zc_owned_shm_client_list_t *this_); +ZENOHC_API bool zc_shm_client_list_check(const zc_owned_shm_client_list_t *this_); #endif /** * Deletes list of SHM Clients */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void zc_shm_client_list_drop(struct zc_owned_shm_client_list_t *this_); +ZENOHC_API void zc_shm_client_list_drop(zc_owned_shm_client_list_t *this_); #endif /** * Borrows list of SHM Clients */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -const struct zc_loaned_shm_client_list_t *zc_shm_client_list_loan(const struct zc_owned_shm_client_list_t *this_); +const zc_loaned_shm_client_list_t *zc_shm_client_list_loan(const zc_owned_shm_client_list_t *this_); #endif /** * Mutably borrows list of SHM Clients */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) ZENOHC_API -struct zc_loaned_shm_client_list_t *zc_shm_client_list_loan_mut(struct zc_owned_shm_client_list_t *this_); +zc_loaned_shm_client_list_t *zc_shm_client_list_loan_mut(zc_owned_shm_client_list_t *this_); #endif /** * Creates a new empty list of SHM Clients */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API z_error_t zc_shm_client_list_new(struct zc_owned_shm_client_list_t *this_); +ZENOHC_API z_error_t zc_shm_client_list_new(zc_owned_shm_client_list_t *this_); #endif /** * Constructs SHM client list in its gravestone value. */ #if (defined(SHARED_MEMORY) && defined(UNSTABLE)) -ZENOHC_API void zc_shm_client_list_null(struct zc_owned_shm_client_list_t *this_); +ZENOHC_API void zc_shm_client_list_null(zc_owned_shm_client_list_t *this_); #endif /** * Calls the closure. Calling an uninitialized closure is a no-op. diff --git a/include/zenoh_macros.h b/include/zenoh_macros.h index d9832c264..cc33d8ce0 100644 --- a/include/zenoh_macros.h +++ b/include/zenoh_macros.h @@ -6,11 +6,8 @@ #define z_loan(x) \ _Generic((x), \ - z_owned_alloc_layout_t : z_alloc_layout_loan, \ - z_owned_buf_alloc_result_t : z_buf_alloc_result_loan, \ z_owned_bytes_t : z_bytes_loan, \ z_owned_bytes_writer_t : z_bytes_writer_loan, \ - z_owned_chunk_alloc_result_t : z_chunk_alloc_result_loan, \ z_owned_closure_hello_t : z_closure_hello_loan, \ z_owned_closure_owned_query_t : z_closure_owned_query_loan, \ z_owned_closure_query_t : z_closure_query_loan, \ @@ -25,7 +22,6 @@ z_owned_fifo_handler_sample_t : z_fifo_handler_sample_loan, \ z_owned_hello_t : z_hello_loan, \ z_owned_keyexpr_t : z_keyexpr_loan, \ - z_owned_memory_layout_t : z_memory_layout_loan, \ z_owned_publisher_t : z_publisher_loan, \ z_owned_query_t : z_query_loan, \ z_owned_queryable_t : z_queryable_loan, \ @@ -36,9 +32,6 @@ z_owned_ring_handler_sample_t : z_ring_handler_sample_loan, \ z_owned_sample_t : z_sample_loan, \ z_owned_session_t : z_session_loan, \ - z_owned_shm_client_storage_t : z_shm_client_storage_loan, \ - z_owned_shm_t : z_shm_loan, \ - z_owned_shm_provider_t : z_shm_provider_loan, \ z_owned_slice_t : z_slice_loan, \ z_owned_slice_map_t : z_slice_map_loan, \ z_owned_source_info_t : z_source_info_loan, \ @@ -49,7 +42,6 @@ z_view_slice_t : z_view_slice_loan, \ z_view_string_t : z_view_string_loan, \ zc_owned_liveliness_token_t : zc_liveliness_token_loan, \ - zc_owned_shm_client_list_t : zc_shm_client_list_loan, \ zcu_owned_closure_matching_status_t : zcu_closure_matching_status_loan, \ ze_owned_querying_subscriber_t : ze_querying_subscriber_loan \ )(&x) @@ -62,20 +54,14 @@ z_owned_config_t : z_config_loan_mut, \ z_owned_mutex_t : z_mutex_loan_mut, \ z_owned_publisher_t : z_publisher_loan_mut, \ - z_owned_shm_t : z_shm_loan_mut, \ - z_owned_shm_mut_t : z_shm_mut_loan_mut, \ z_owned_slice_map_t : z_slice_map_loan_mut, \ - z_owned_string_array_t : z_string_array_loan_mut, \ - zc_owned_shm_client_list_t : zc_shm_client_list_loan_mut \ + z_owned_string_array_t : z_string_array_loan_mut \ )(&x) #define z_drop(x) \ _Generic((x), \ - z_owned_alloc_layout_t* : z_alloc_layout_drop, \ - z_owned_buf_alloc_result_t* : z_buf_alloc_result_drop, \ z_owned_bytes_t* : z_bytes_drop, \ z_owned_bytes_writer_t* : z_bytes_writer_drop, \ - z_owned_chunk_alloc_result_t* : z_chunk_alloc_result_drop, \ z_owned_closure_hello_t* : z_closure_hello_drop, \ z_owned_closure_owned_query_t* : z_closure_owned_query_drop, \ z_owned_closure_query_t* : z_closure_query_drop, \ @@ -90,7 +76,6 @@ z_owned_fifo_handler_sample_t* : z_fifo_handler_sample_drop, \ z_owned_hello_t* : z_hello_drop, \ z_owned_keyexpr_t* : z_keyexpr_drop, \ - z_owned_memory_layout_t* : z_memory_layout_drop, \ z_owned_mutex_t* : z_mutex_drop, \ z_owned_publisher_t* : z_publisher_drop, \ z_owned_query_t* : z_query_drop, \ @@ -102,11 +87,6 @@ z_owned_ring_handler_sample_t* : z_ring_handler_sample_drop, \ z_owned_sample_t* : z_sample_drop, \ z_owned_session_t* : z_session_drop, \ - z_owned_shm_client_t* : z_shm_client_drop, \ - z_owned_shm_client_storage_t* : z_shm_client_storage_drop, \ - z_owned_shm_t* : z_shm_drop, \ - z_owned_shm_mut_t* : z_shm_mut_drop, \ - z_owned_shm_provider_t* : z_shm_provider_drop, \ z_owned_slice_t* : z_slice_drop, \ z_owned_slice_map_t* : z_slice_map_drop, \ z_owned_source_info_t* : z_source_info_drop, \ @@ -114,7 +94,6 @@ z_owned_string_t* : z_string_drop, \ z_owned_subscriber_t* : z_subscriber_drop, \ zc_owned_liveliness_token_t* : zc_liveliness_token_drop, \ - zc_owned_shm_client_list_t* : zc_shm_client_list_drop, \ zcu_owned_closure_matching_status_t* : zcu_closure_matching_status_drop, \ ze_owned_publication_cache_t* : ze_publication_cache_drop, \ ze_owned_querying_subscriber_t* : ze_querying_subscriber_drop \ @@ -124,11 +103,8 @@ #define z_null(x) \ _Generic((x), \ - z_owned_alloc_layout_t* : z_alloc_layout_null, \ - z_owned_buf_alloc_result_t* : z_buf_alloc_result_null, \ z_owned_bytes_t* : z_bytes_null, \ z_owned_bytes_writer_t* : z_bytes_writer_null, \ - z_owned_chunk_alloc_result_t* : z_chunk_alloc_result_null, \ z_owned_closure_hello_t* : z_closure_hello_null, \ z_owned_closure_query_t* : z_closure_query_null, \ z_owned_closure_reply_t* : z_closure_reply_null, \ @@ -142,7 +118,6 @@ z_owned_fifo_handler_sample_t* : z_fifo_handler_sample_null, \ z_owned_hello_t* : z_hello_null, \ z_owned_keyexpr_t* : z_keyexpr_null, \ - z_owned_memory_layout_t* : z_memory_layout_null, \ z_owned_mutex_t* : z_mutex_null, \ z_owned_publisher_t* : z_publisher_null, \ z_owned_query_t* : z_query_null, \ @@ -154,11 +129,6 @@ z_owned_ring_handler_sample_t* : z_ring_handler_sample_null, \ z_owned_sample_t* : z_sample_null, \ z_owned_session_t* : z_session_null, \ - z_owned_shm_client_t* : z_shm_client_null, \ - z_owned_shm_client_storage_t* : z_shm_client_storage_null, \ - z_owned_shm_mut_t* : z_shm_mut_null, \ - z_owned_shm_t* : z_shm_null, \ - z_owned_shm_provider_t* : z_shm_provider_null, \ z_owned_slice_map_t* : z_slice_map_null, \ z_owned_slice_t* : z_slice_null, \ z_owned_source_info_t* : z_source_info_null, \ @@ -170,7 +140,6 @@ z_view_slice_t* : z_view_slice_null, \ z_view_string_t* : z_view_string_null, \ zc_owned_liveliness_token_t* : zc_liveliness_token_null, \ - zc_owned_shm_client_list_t* : zc_shm_client_list_null, \ zcu_owned_closure_matching_status_t* : zcu_closure_matching_status_null, \ ze_owned_publication_cache_t* : ze_publication_cache_null, \ ze_owned_querying_subscriber_t* : ze_querying_subscriber_null \ @@ -178,11 +147,8 @@ #define z_check(x) \ _Generic((x), \ - z_owned_alloc_layout_t : z_alloc_layout_check, \ - z_owned_buf_alloc_result_t : z_buf_alloc_result_check, \ z_owned_bytes_t : z_bytes_check, \ z_owned_bytes_writer_t : z_bytes_writer_check, \ - z_owned_chunk_alloc_result_t : z_chunk_alloc_result_check, \ z_owned_closure_hello_t : z_closure_hello_check, \ z_owned_closure_query_t : z_closure_query_check, \ z_owned_closure_reply_t : z_closure_reply_check, \ @@ -196,7 +162,6 @@ z_owned_fifo_handler_sample_t : z_fifo_handler_sample_check, \ z_owned_hello_t : z_hello_check, \ z_owned_keyexpr_t : z_keyexpr_check, \ - z_owned_memory_layout_t : z_memory_layout_check, \ z_owned_mutex_t : z_mutex_check, \ z_owned_publisher_t : z_publisher_check, \ z_owned_query_t : z_query_check, \ @@ -208,11 +173,6 @@ z_owned_ring_handler_sample_t : z_ring_handler_sample_check, \ z_owned_sample_t : z_sample_check, \ z_owned_session_t : z_session_check, \ - z_owned_shm_t : z_shm_check, \ - z_owned_shm_client_t : z_shm_client_check, \ - z_owned_shm_client_storage_t : z_shm_client_storage_check, \ - z_owned_shm_mut_t : z_shm_mut_check, \ - z_owned_shm_provider_t : z_shm_provider_check, \ z_owned_slice_t : z_slice_check, \ z_owned_slice_map_t : z_slice_map_check, \ z_owned_source_info_t : z_source_info_check, \ @@ -224,7 +184,6 @@ z_view_slice_t : z_view_slice_check, \ z_view_string_t : z_view_string_check, \ zc_owned_liveliness_token_t : zc_liveliness_token_check, \ - zc_owned_shm_client_list_t : zc_shm_client_list_check, \ zcu_owned_closure_matching_status_t : zcu_closure_matching_status_check, \ ze_owned_publication_cache_t : ze_publication_cache_check, \ ze_owned_querying_subscriber_t : ze_querying_subscriber_check \ @@ -267,11 +226,8 @@ -inline const z_loaned_alloc_layout_t* z_loan(const z_owned_alloc_layout_t& this_) { return z_alloc_layout_loan(&this_); }; -inline const z_loaned_buf_alloc_result_t* z_loan(const z_owned_buf_alloc_result_t& this_) { return z_buf_alloc_result_loan(&this_); }; inline const z_loaned_bytes_t* z_loan(const z_owned_bytes_t& this_) { return z_bytes_loan(&this_); }; inline const z_loaned_bytes_writer_t* z_loan(const z_owned_bytes_writer_t& this_) { return z_bytes_writer_loan(&this_); }; -inline const z_loaned_chunk_alloc_result_t* z_loan(const z_owned_chunk_alloc_result_t& this_) { return z_chunk_alloc_result_loan(&this_); }; inline const z_loaned_closure_hello_t* z_loan(const z_owned_closure_hello_t& closure) { return z_closure_hello_loan(&closure); }; inline const z_loaned_closure_owned_query_t* z_loan(const z_owned_closure_owned_query_t& closure) { return z_closure_owned_query_loan(&closure); }; inline const z_loaned_closure_query_t* z_loan(const z_owned_closure_query_t& closure) { return z_closure_query_loan(&closure); }; @@ -286,7 +242,6 @@ inline const z_loaned_fifo_handler_reply_t* z_loan(const z_owned_fifo_handler_re inline const z_loaned_fifo_handler_sample_t* z_loan(const z_owned_fifo_handler_sample_t& this_) { return z_fifo_handler_sample_loan(&this_); }; inline const z_loaned_hello_t* z_loan(const z_owned_hello_t& this_) { return z_hello_loan(&this_); }; inline const z_loaned_keyexpr_t* z_loan(const z_owned_keyexpr_t& this_) { return z_keyexpr_loan(&this_); }; -inline const z_loaned_memory_layout_t* z_loan(const z_owned_memory_layout_t& this_) { return z_memory_layout_loan(&this_); }; inline const z_loaned_publisher_t* z_loan(const z_owned_publisher_t& this_) { return z_publisher_loan(&this_); }; inline const z_loaned_query_t* z_loan(const z_owned_query_t& this_) { return z_query_loan(&this_); }; inline const z_loaned_queryable_t* z_loan(const z_owned_queryable_t& this_) { return z_queryable_loan(&this_); }; @@ -297,9 +252,6 @@ inline const z_loaned_ring_handler_reply_t* z_loan(const z_owned_ring_handler_re inline const z_loaned_ring_handler_sample_t* z_loan(const z_owned_ring_handler_sample_t& this_) { return z_ring_handler_sample_loan(&this_); }; inline const z_loaned_sample_t* z_loan(const z_owned_sample_t& this_) { return z_sample_loan(&this_); }; inline const z_loaned_session_t* z_loan(const z_owned_session_t& this_) { return z_session_loan(&this_); }; -inline const z_loaned_shm_client_storage_t* z_loan(const z_owned_shm_client_storage_t& this_) { return z_shm_client_storage_loan(&this_); }; -inline const z_loaned_shm_t* z_loan(const z_owned_shm_t& this_) { return z_shm_loan(&this_); }; -inline const z_loaned_shm_provider_t* z_loan(const z_owned_shm_provider_t& this_) { return z_shm_provider_loan(&this_); }; inline const z_loaned_slice_t* z_loan(const z_owned_slice_t& this_) { return z_slice_loan(&this_); }; inline const z_loaned_slice_map_t* z_loan(const z_owned_slice_map_t& this_) { return z_slice_map_loan(&this_); }; inline const z_loaned_source_info_t* z_loan(const z_owned_source_info_t& this_) { return z_source_info_loan(&this_); }; @@ -310,7 +262,6 @@ inline const z_loaned_keyexpr_t* z_loan(const z_view_keyexpr_t& this_) { return inline const z_loaned_slice_t* z_loan(const z_view_slice_t& this_) { return z_view_slice_loan(&this_); }; inline const z_loaned_string_t* z_loan(const z_view_string_t& this_) { return z_view_string_loan(&this_); }; inline const zc_loaned_liveliness_token_t* z_loan(const zc_owned_liveliness_token_t& this_) { return zc_liveliness_token_loan(&this_); }; -inline const zc_loaned_shm_client_list_t* z_loan(const zc_owned_shm_client_list_t& this_) { return zc_shm_client_list_loan(&this_); }; inline const zcu_loaned_closure_matching_status_t* z_loan(const zcu_owned_closure_matching_status_t& closure) { return zcu_closure_matching_status_loan(&closure); }; inline const ze_loaned_querying_subscriber_t* z_loan(const ze_owned_querying_subscriber_t& this_) { return ze_querying_subscriber_loan(&this_); }; @@ -321,18 +272,12 @@ inline z_loaned_condvar_t* z_loan_mut(z_owned_condvar_t& this_) { return z_condv inline z_loaned_config_t* z_loan_mut(z_owned_config_t& this_) { return z_config_loan_mut(&this_); }; inline z_loaned_mutex_t* z_loan_mut(z_owned_mutex_t& this_) { return z_mutex_loan_mut(&this_); }; inline z_loaned_publisher_t* z_loan_mut(z_owned_publisher_t& this_) { return z_publisher_loan_mut(&this_); }; -inline z_loaned_shm_t* z_loan_mut(z_owned_shm_t& this_) { return z_shm_loan_mut(&this_); }; -inline z_loaned_shm_mut_t* z_loan_mut(z_owned_shm_mut_t& this_) { return z_shm_mut_loan_mut(&this_); }; inline z_loaned_slice_map_t* z_loan_mut(z_owned_slice_map_t& this_) { return z_slice_map_loan_mut(&this_); }; inline z_loaned_string_array_t* z_loan_mut(z_owned_string_array_t& this_) { return z_string_array_loan_mut(&this_); }; -inline zc_loaned_shm_client_list_t* z_loan_mut(zc_owned_shm_client_list_t& this_) { return zc_shm_client_list_loan_mut(&this_); }; -inline void z_drop(z_owned_alloc_layout_t* this_) { return z_alloc_layout_drop(this_); }; -inline void z_drop(z_owned_buf_alloc_result_t* this_) { return z_buf_alloc_result_drop(this_); }; inline void z_drop(z_owned_bytes_t* this_) { return z_bytes_drop(this_); }; inline void z_drop(z_owned_bytes_writer_t* this_) { return z_bytes_writer_drop(this_); }; -inline void z_drop(z_owned_chunk_alloc_result_t* this_) { return z_chunk_alloc_result_drop(this_); }; inline void z_drop(z_owned_closure_hello_t* closure) { return z_closure_hello_drop(closure); }; inline void z_drop(z_owned_closure_owned_query_t* closure) { return z_closure_owned_query_drop(closure); }; inline void z_drop(z_owned_closure_query_t* closure) { return z_closure_query_drop(closure); }; @@ -347,7 +292,6 @@ inline void z_drop(z_owned_fifo_handler_reply_t* this_) { return z_fifo_handler_ inline void z_drop(z_owned_fifo_handler_sample_t* this_) { return z_fifo_handler_sample_drop(this_); }; inline void z_drop(z_owned_hello_t* this_) { return z_hello_drop(this_); }; inline void z_drop(z_owned_keyexpr_t* this_) { return z_keyexpr_drop(this_); }; -inline void z_drop(z_owned_memory_layout_t* this_) { return z_memory_layout_drop(this_); }; inline void z_drop(z_owned_mutex_t* this_) { return z_mutex_drop(this_); }; inline void z_drop(z_owned_publisher_t* this_) { return z_publisher_drop(this_); }; inline void z_drop(z_owned_query_t* this_) { return z_query_drop(this_); }; @@ -359,11 +303,6 @@ inline void z_drop(z_owned_ring_handler_reply_t* this_) { return z_ring_handler_ inline void z_drop(z_owned_ring_handler_sample_t* this_) { return z_ring_handler_sample_drop(this_); }; inline void z_drop(z_owned_sample_t* this_) { return z_sample_drop(this_); }; inline void z_drop(z_owned_session_t* this_) { return z_session_drop(this_); }; -inline void z_drop(z_owned_shm_client_t* this_) { return z_shm_client_drop(this_); }; -inline void z_drop(z_owned_shm_client_storage_t* this_) { return z_shm_client_storage_drop(this_); }; -inline void z_drop(z_owned_shm_t* this_) { return z_shm_drop(this_); }; -inline void z_drop(z_owned_shm_mut_t* this_) { return z_shm_mut_drop(this_); }; -inline void z_drop(z_owned_shm_provider_t* this_) { return z_shm_provider_drop(this_); }; inline void z_drop(z_owned_slice_t* this_) { return z_slice_drop(this_); }; inline void z_drop(z_owned_slice_map_t* this_) { return z_slice_map_drop(this_); }; inline void z_drop(z_owned_source_info_t* this_) { return z_source_info_drop(this_); }; @@ -371,17 +310,13 @@ inline void z_drop(z_owned_string_array_t* this_) { return z_string_array_drop(t inline void z_drop(z_owned_string_t* this_) { return z_string_drop(this_); }; inline void z_drop(z_owned_subscriber_t* this_) { return z_subscriber_drop(this_); }; inline void z_drop(zc_owned_liveliness_token_t* this_) { return zc_liveliness_token_drop(this_); }; -inline void z_drop(zc_owned_shm_client_list_t* this_) { return zc_shm_client_list_drop(this_); }; inline void z_drop(zcu_owned_closure_matching_status_t* closure) { return zcu_closure_matching_status_drop(closure); }; inline void z_drop(ze_owned_publication_cache_t* this_) { return ze_publication_cache_drop(this_); }; inline void z_drop(ze_owned_querying_subscriber_t* this_) { return ze_querying_subscriber_drop(this_); }; -inline z_owned_alloc_layout_t* z_move(z_owned_alloc_layout_t& this_) { return (&this_); }; -inline z_owned_buf_alloc_result_t* z_move(z_owned_buf_alloc_result_t& this_) { return (&this_); }; inline z_owned_bytes_t* z_move(z_owned_bytes_t& this_) { return (&this_); }; inline z_owned_bytes_writer_t* z_move(z_owned_bytes_writer_t& this_) { return (&this_); }; -inline z_owned_chunk_alloc_result_t* z_move(z_owned_chunk_alloc_result_t& this_) { return (&this_); }; inline z_owned_closure_hello_t* z_move(z_owned_closure_hello_t& closure) { return (&closure); }; inline z_owned_closure_owned_query_t* z_move(z_owned_closure_owned_query_t& closure) { return (&closure); }; inline z_owned_closure_query_t* z_move(z_owned_closure_query_t& closure) { return (&closure); }; @@ -396,7 +331,6 @@ inline z_owned_fifo_handler_reply_t* z_move(z_owned_fifo_handler_reply_t& this_) inline z_owned_fifo_handler_sample_t* z_move(z_owned_fifo_handler_sample_t& this_) { return (&this_); }; inline z_owned_hello_t* z_move(z_owned_hello_t& this_) { return (&this_); }; inline z_owned_keyexpr_t* z_move(z_owned_keyexpr_t& this_) { return (&this_); }; -inline z_owned_memory_layout_t* z_move(z_owned_memory_layout_t& this_) { return (&this_); }; inline z_owned_mutex_t* z_move(z_owned_mutex_t& this_) { return (&this_); }; inline z_owned_publisher_t* z_move(z_owned_publisher_t& this_) { return (&this_); }; inline z_owned_query_t* z_move(z_owned_query_t& this_) { return (&this_); }; @@ -408,11 +342,6 @@ inline z_owned_ring_handler_reply_t* z_move(z_owned_ring_handler_reply_t& this_) inline z_owned_ring_handler_sample_t* z_move(z_owned_ring_handler_sample_t& this_) { return (&this_); }; inline z_owned_sample_t* z_move(z_owned_sample_t& this_) { return (&this_); }; inline z_owned_session_t* z_move(z_owned_session_t& this_) { return (&this_); }; -inline z_owned_shm_client_t* z_move(z_owned_shm_client_t& this_) { return (&this_); }; -inline z_owned_shm_client_storage_t* z_move(z_owned_shm_client_storage_t& this_) { return (&this_); }; -inline z_owned_shm_t* z_move(z_owned_shm_t& this_) { return (&this_); }; -inline z_owned_shm_mut_t* z_move(z_owned_shm_mut_t& this_) { return (&this_); }; -inline z_owned_shm_provider_t* z_move(z_owned_shm_provider_t& this_) { return (&this_); }; inline z_owned_slice_t* z_move(z_owned_slice_t& this_) { return (&this_); }; inline z_owned_slice_map_t* z_move(z_owned_slice_map_t& this_) { return (&this_); }; inline z_owned_source_info_t* z_move(z_owned_source_info_t& this_) { return (&this_); }; @@ -420,17 +349,13 @@ inline z_owned_string_array_t* z_move(z_owned_string_array_t& this_) { return (& inline z_owned_string_t* z_move(z_owned_string_t& this_) { return (&this_); }; inline z_owned_subscriber_t* z_move(z_owned_subscriber_t& this_) { return (&this_); }; inline zc_owned_liveliness_token_t* z_move(zc_owned_liveliness_token_t& this_) { return (&this_); }; -inline zc_owned_shm_client_list_t* z_move(zc_owned_shm_client_list_t& this_) { return (&this_); }; inline zcu_owned_closure_matching_status_t* z_move(zcu_owned_closure_matching_status_t& closure) { return (&closure); }; inline ze_owned_publication_cache_t* z_move(ze_owned_publication_cache_t& this_) { return (&this_); }; inline ze_owned_querying_subscriber_t* z_move(ze_owned_querying_subscriber_t& this_) { return (&this_); }; -inline void z_null(z_owned_alloc_layout_t* this_) { return z_alloc_layout_null(this_); }; -inline void z_null(z_owned_buf_alloc_result_t* this_) { return z_buf_alloc_result_null(this_); }; inline void z_null(z_owned_bytes_t* this_) { return z_bytes_null(this_); }; inline void z_null(z_owned_bytes_writer_t* this_) { return z_bytes_writer_null(this_); }; -inline void z_null(z_owned_chunk_alloc_result_t* this_) { return z_chunk_alloc_result_null(this_); }; inline void z_null(z_owned_closure_hello_t* this_) { return z_closure_hello_null(this_); }; inline void z_null(z_owned_closure_query_t* this_) { return z_closure_query_null(this_); }; inline void z_null(z_owned_closure_reply_t* this_) { return z_closure_reply_null(this_); }; @@ -444,7 +369,6 @@ inline void z_null(z_owned_fifo_handler_reply_t* this_) { return z_fifo_handler_ inline void z_null(z_owned_fifo_handler_sample_t* this_) { return z_fifo_handler_sample_null(this_); }; inline void z_null(z_owned_hello_t* this_) { return z_hello_null(this_); }; inline void z_null(z_owned_keyexpr_t* this_) { return z_keyexpr_null(this_); }; -inline void z_null(z_owned_memory_layout_t* this_) { return z_memory_layout_null(this_); }; inline void z_null(z_owned_mutex_t* this_) { return z_mutex_null(this_); }; inline void z_null(z_owned_publisher_t* this_) { return z_publisher_null(this_); }; inline void z_null(z_owned_query_t* this_) { return z_query_null(this_); }; @@ -456,11 +380,6 @@ inline void z_null(z_owned_ring_handler_reply_t* this_) { return z_ring_handler_ inline void z_null(z_owned_ring_handler_sample_t* this_) { return z_ring_handler_sample_null(this_); }; inline void z_null(z_owned_sample_t* this_) { return z_sample_null(this_); }; inline void z_null(z_owned_session_t* this_) { return z_session_null(this_); }; -inline void z_null(z_owned_shm_client_t* this_) { return z_shm_client_null(this_); }; -inline void z_null(z_owned_shm_client_storage_t* this_) { return z_shm_client_storage_null(this_); }; -inline void z_null(z_owned_shm_mut_t* this_) { return z_shm_mut_null(this_); }; -inline void z_null(z_owned_shm_t* this_) { return z_shm_null(this_); }; -inline void z_null(z_owned_shm_provider_t* this_) { return z_shm_provider_null(this_); }; inline void z_null(z_owned_slice_map_t* this_) { return z_slice_map_null(this_); }; inline void z_null(z_owned_slice_t* this_) { return z_slice_null(this_); }; inline void z_null(z_owned_source_info_t* this_) { return z_source_info_null(this_); }; @@ -472,17 +391,13 @@ inline void z_null(z_view_keyexpr_t* this_) { return z_view_keyexpr_null(this_); inline void z_null(z_view_slice_t* this_) { return z_view_slice_null(this_); }; inline void z_null(z_view_string_t* this_) { return z_view_string_null(this_); }; inline void z_null(zc_owned_liveliness_token_t* this_) { return zc_liveliness_token_null(this_); }; -inline void z_null(zc_owned_shm_client_list_t* this_) { return zc_shm_client_list_null(this_); }; inline void z_null(zcu_owned_closure_matching_status_t* this_) { return zcu_closure_matching_status_null(this_); }; inline void z_null(ze_owned_publication_cache_t* this_) { return ze_publication_cache_null(this_); }; inline void z_null(ze_owned_querying_subscriber_t* this_) { return ze_querying_subscriber_null(this_); }; -inline bool z_check(const z_owned_alloc_layout_t& this_) { return z_alloc_layout_check(&this_); }; -inline bool z_check(const z_owned_buf_alloc_result_t& this_) { return z_buf_alloc_result_check(&this_); }; inline bool z_check(const z_owned_bytes_t& this_) { return z_bytes_check(&this_); }; inline bool z_check(const z_owned_bytes_writer_t& this_) { return z_bytes_writer_check(&this_); }; -inline bool z_check(const z_owned_chunk_alloc_result_t& this_) { return z_chunk_alloc_result_check(&this_); }; inline bool z_check(const z_owned_closure_hello_t& this_) { return z_closure_hello_check(&this_); }; inline bool z_check(const z_owned_closure_query_t& this_) { return z_closure_query_check(&this_); }; inline bool z_check(const z_owned_closure_reply_t& this_) { return z_closure_reply_check(&this_); }; @@ -496,7 +411,6 @@ inline bool z_check(const z_owned_fifo_handler_reply_t& this_) { return z_fifo_h inline bool z_check(const z_owned_fifo_handler_sample_t& this_) { return z_fifo_handler_sample_check(&this_); }; inline bool z_check(const z_owned_hello_t& this_) { return z_hello_check(&this_); }; inline bool z_check(const z_owned_keyexpr_t& this_) { return z_keyexpr_check(&this_); }; -inline bool z_check(const z_owned_memory_layout_t& this_) { return z_memory_layout_check(&this_); }; inline bool z_check(const z_owned_mutex_t& this_) { return z_mutex_check(&this_); }; inline bool z_check(const z_owned_publisher_t& this_) { return z_publisher_check(&this_); }; inline bool z_check(const z_owned_query_t& query) { return z_query_check(&query); }; @@ -508,11 +422,6 @@ inline bool z_check(const z_owned_ring_handler_reply_t& this_) { return z_ring_h inline bool z_check(const z_owned_ring_handler_sample_t& this_) { return z_ring_handler_sample_check(&this_); }; inline bool z_check(const z_owned_sample_t& this_) { return z_sample_check(&this_); }; inline bool z_check(const z_owned_session_t& this_) { return z_session_check(&this_); }; -inline bool z_check(const z_owned_shm_t& this_) { return z_shm_check(&this_); }; -inline bool z_check(const z_owned_shm_client_t& this_) { return z_shm_client_check(&this_); }; -inline bool z_check(const z_owned_shm_client_storage_t& this_) { return z_shm_client_storage_check(&this_); }; -inline bool z_check(const z_owned_shm_mut_t& this_) { return z_shm_mut_check(&this_); }; -inline bool z_check(const z_owned_shm_provider_t& this_) { return z_shm_provider_check(&this_); }; inline bool z_check(const z_owned_slice_t& this_) { return z_slice_check(&this_); }; inline bool z_check(const z_owned_slice_map_t& map) { return z_slice_map_check(&map); }; inline bool z_check(const z_owned_source_info_t& this_) { return z_source_info_check(&this_); }; @@ -524,7 +433,6 @@ inline bool z_check(const z_view_keyexpr_t& this_) { return z_view_keyexpr_check inline bool z_check(const z_view_slice_t& this_) { return z_view_slice_check(&this_); }; inline bool z_check(const z_view_string_t& this_) { return z_view_string_check(&this_); }; inline bool z_check(const zc_owned_liveliness_token_t& this_) { return zc_liveliness_token_check(&this_); }; -inline bool z_check(const zc_owned_shm_client_list_t& this_) { return zc_shm_client_list_check(&this_); }; inline bool z_check(const zcu_owned_closure_matching_status_t& this_) { return zcu_closure_matching_status_check(&this_); }; inline bool z_check(const ze_owned_publication_cache_t& this_) { return ze_publication_cache_check(&this_); }; inline bool z_check(const ze_owned_querying_subscriber_t& this_) { return ze_querying_subscriber_check(&this_); }; @@ -659,16 +567,10 @@ inline bool z_recv(const z_loaned_ring_handler_sample_t* this_, z_owned_sample_t template struct z_loaned_to_owned_type_t {}; template struct z_owned_to_loaned_type_t {}; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_alloc_layout_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_alloc_layout_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_buf_alloc_result_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_buf_alloc_result_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_bytes_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_bytes_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_bytes_writer_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_bytes_writer_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_chunk_alloc_result_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_chunk_alloc_result_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_closure_hello_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_closure_hello_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_closure_owned_query_t type; }; @@ -697,8 +599,6 @@ template<> struct z_loaned_to_owned_type_t { typedef z_owned_h template<> struct z_owned_to_loaned_type_t { typedef z_loaned_hello_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_keyexpr_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_keyexpr_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_memory_layout_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_memory_layout_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_publisher_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_publisher_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_query_t type; }; @@ -719,12 +619,6 @@ template<> struct z_loaned_to_owned_type_t { typedef z_owned_ template<> struct z_owned_to_loaned_type_t { typedef z_loaned_sample_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_session_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_session_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_shm_client_storage_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_shm_client_storage_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_shm_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_shm_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_shm_provider_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_shm_provider_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_slice_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_slice_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_slice_map_t type; }; @@ -739,14 +633,10 @@ template<> struct z_loaned_to_owned_type_t { typedef z_ow template<> struct z_owned_to_loaned_type_t { typedef z_loaned_subscriber_t type; }; template<> struct z_loaned_to_owned_type_t { typedef zc_owned_liveliness_token_t type; }; template<> struct z_owned_to_loaned_type_t { typedef zc_loaned_liveliness_token_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef zc_owned_shm_client_list_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef zc_loaned_shm_client_list_t type; }; template<> struct z_loaned_to_owned_type_t { typedef zcu_owned_closure_matching_status_t type; }; template<> struct z_owned_to_loaned_type_t { typedef zcu_loaned_closure_matching_status_t type; }; template<> struct z_loaned_to_owned_type_t { typedef ze_owned_querying_subscriber_t type; }; template<> struct z_owned_to_loaned_type_t { typedef ze_loaned_querying_subscriber_t type; }; template<> struct z_loaned_to_owned_type_t { typedef z_owned_mutex_t type; }; template<> struct z_owned_to_loaned_type_t { typedef z_loaned_mutex_t type; }; -template<> struct z_loaned_to_owned_type_t { typedef z_owned_shm_mut_t type; }; -template<> struct z_owned_to_loaned_type_t { typedef z_loaned_shm_mut_t type; }; #endif // #ifndef __cplusplus \ No newline at end of file