bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / payload.h
index a8f66f36b98b6f82181b4209ff213961f16d55ab..e9bd8be9d5d2a48ad0a44c8db58edad3e3e4cffb 100644 (file)
 #include <common/dynamic-array.h>
 #include <common/fd-handle.h>
 
+#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 */
This page took 0.023567 seconds and 4 git commands to generate.