X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpayload.h;h=e9bd8be9d5d2a48ad0a44c8db58edad3e3e4cffb;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=a8f66f36b98b6f82181b4209ff213961f16d55ab;hpb=fe489250ce102edf511e99669025934ec9587c63;p=lttng-tools.git diff --git a/src/common/payload.h b/src/common/payload.h index a8f66f36b..e9bd8be9d 100644 --- a/src/common/payload.h +++ b/src/common/payload.h @@ -12,6 +12,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * An lttng_payload encompasses the 'data' (bytes) and any passed file * descriptors as part of a message between liblttng-ctl and the session @@ -27,16 +31,13 @@ struct lttng_payload { * Initialize a payload. This performs no allocation and is meant * to be used instead of zero-ing the payload structure. */ -LTTNG_HIDDEN void lttng_payload_init(struct lttng_payload *payload); /* Copy a payload. */ -LTTNG_HIDDEN int lttng_payload_copy(const struct lttng_payload *src_payload, struct lttng_payload *dst_payload); /* Release any memory and references held by the payload. */ -LTTNG_HIDDEN void lttng_payload_reset(struct lttng_payload *payload); /* @@ -46,7 +47,6 @@ void lttng_payload_reset(struct lttng_payload *payload); * lttng_payload_reset must still be called on an lttng_payload to * free all allocated memory. */ -LTTNG_HIDDEN void lttng_payload_clear(struct lttng_payload *payload); /** @@ -58,8 +58,11 @@ void lttng_payload_clear(struct lttng_payload *payload); * * Returns 0 on success, -1 on allocation error. */ -LTTNG_HIDDEN int lttng_payload_push_fd_handle(struct lttng_payload *payload, struct fd_handle *fd_handle); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_PAYLOAD_H */