diff --git a/include/sxmp/sxmp.h b/include/sxmp/sxmp.h index ea63a03..48cc6bc 100644 --- a/include/sxmp/sxmp.h +++ b/include/sxmp/sxmp.h @@ -161,6 +161,16 @@ typedef struct __sxmsg_t { #define sxmsg_waitlock(m) pthread_mutex_lock(&((m)->wait)) #define sxmsg_waitunlock(m) pthread_mutex_unlock(&((m)->wait)) +#ifdef __cplusplus +extern "C" { +#endif + static inline sxlink_t *sxmsg_link(sxmsg_t *msg) { + return msg->pch->link; + } +#ifdef __cplusplus +} +#endif + typedef struct __link_rpc_entry_type { char *name; int (*rpcf)(void *, sexp_t *);