Skip to content

Commit

Permalink
Add export "C" for closures callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Oct 14, 2024
1 parent c75c89a commit 46180fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/zenoh-pico/net/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#include "zenoh-pico/net/session.h"
#include "zenoh-pico/protocol/core.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* The query to be answered by a queryable.
*/
Expand Down Expand Up @@ -58,4 +62,8 @@ _z_queryable_t _z_queryable_null(void);
bool _z_queryable_check(const _z_queryable_t *queryable);
#endif

#ifdef __cplusplus
}
#endif

#endif /* ZENOH_PICO_QUERY_NETAPI_H */
8 changes: 8 additions & 0 deletions include/zenoh-pico/session/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#include "zenoh-pico/protocol/core.h"
#include "zenoh-pico/transport/manager.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* The callback signature of the cleanup functions.
*/
Expand Down Expand Up @@ -203,4 +207,8 @@ void _z_declare_data_clear(_z_declare_data_t *data);
_Z_ELEM_DEFINE(_z_declare_data, _z_declare_data_t, _z_noop_size, _z_declare_data_clear, _z_noop_copy)
_Z_LIST_DEFINE(_z_declare_data, _z_declare_data_t)

#ifdef __cplusplus
}
#endif

#endif /* INCLUDE_ZENOH_PICO_SESSION_SESSION_H */

0 comments on commit 46180fa

Please sign in to comment.