Skip to content

Commit

Permalink
Bugfix: Unable to build z_queryable_with_channels.c (#340)
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary authored Apr 18, 2024
1 parent 09df4b3 commit 68ab0c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/zenoh_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ template<> struct zenoh_drop_type<z_owned_closure_hello_t> { typedef void type;
template<> struct zenoh_drop_type<z_owned_closure_zid_t> { typedef void type; };
template<> struct zenoh_drop_type<zcu_owned_closure_matching_status_t> { typedef void type; };
template<> struct zenoh_drop_type<z_owned_reply_channel_closure_t> { typedef void type; };
template<> struct zenoh_drop_type<z_owned_query_channel_closure_t> { typedef void type; };
template<> struct zenoh_drop_type<z_owned_reply_channel_t> { typedef void type; };
template<> struct zenoh_drop_type<z_owned_query_channel_t> { typedef void type; };
template<> struct zenoh_drop_type<z_owned_bytes_map_t> { typedef void type; };
template<> struct zenoh_drop_type<zc_owned_liveliness_token_t> { typedef void type; };
template<> struct zenoh_drop_type<ze_owned_publication_cache_t> { typedef int8_t type; };
Expand Down Expand Up @@ -210,7 +212,9 @@ template<> inline void z_drop(z_owned_closure_hello_t* v) { z_closure_hello_drop
template<> inline void z_drop(z_owned_closure_zid_t* v) { z_closure_zid_drop(v); }
template<> inline void z_drop(zcu_owned_closure_matching_status_t* v) { zcu_closure_matching_status_drop(v); }
template<> inline void z_drop(z_owned_reply_channel_closure_t* v) { z_reply_channel_closure_drop(v); }
template<> inline void z_drop(z_owned_query_channel_closure_t* v) { z_query_channel_closure_drop(v); }
template<> inline void z_drop(z_owned_reply_channel_t* v) { z_reply_channel_drop(v); }
template<> inline void z_drop(z_owned_query_channel_t* v) { z_query_channel_drop(v); }
template<> inline void z_drop(z_owned_bytes_map_t* v) { z_bytes_map_drop(v); }
template<> inline void z_drop(zc_owned_liveliness_token_t* v) { zc_liveliness_undeclare_token(v); }
template<> inline int8_t z_drop(ze_owned_publication_cache_t* v) { return ze_undeclare_publication_cache(v); }
Expand Down Expand Up @@ -273,6 +277,8 @@ inline void z_call(const struct z_owned_closure_sample_t &closure, const struct
{ z_closure_sample_call(&closure, sample); }
inline void z_call(const struct z_owned_closure_query_t &closure, const struct z_query_t *query)
{ z_closure_query_call(&closure, query); }
inline void z_call(const struct z_owned_closure_owned_query_t &closure, struct z_owned_query_t *query)
{ z_closure_owned_query_call(&closure, query); }
inline void z_call(const struct z_owned_closure_reply_t &closure, struct z_owned_reply_t *sample)
{ z_closure_reply_call(&closure, sample); }
inline void z_call(const struct z_owned_closure_hello_t &closure, struct z_owned_hello_t *hello)
Expand All @@ -283,6 +289,8 @@ inline void z_call(const struct zcu_owned_closure_matching_status_t &closure, co
{ zcu_closure_matching_status_call(&closure, matching_status); }
inline bool z_call(const struct z_owned_reply_channel_closure_t &closure, struct z_owned_reply_t *sample)
{ return z_reply_channel_closure_call(&closure, sample); }
inline bool z_call(const struct z_owned_query_channel_closure_t &closure, struct z_owned_query_t *query)
{ return z_query_channel_closure_call(&closure, query); }
// clang-format on

#define _z_closure_overloader(callback, droper, ctx, ...) \
Expand Down

0 comments on commit 68ab0c1

Please sign in to comment.