LTTNG_EXPORT extern int lttng_set_session_shm_path(const char *session_name,
const char *shm_path);
+/*
+ * Get the trace format descriptor of an lttng_session object on the session daemon.
+ *
+ * This function must only be used with lttng_session objects returned
+ * by lttng_list_sessions() or lttng_session_create().
+ *
+ * The returned object is a copy of the session trace_format_descriptor for
+ * backward compatibility purpose.
+ *
+ * The returned object must be freed by using lttng_trace_format_descriptor_delete.
+ *
+ * Returns LTTNG_OK on success. See lttng-error.h for the meaning of the other
+ * return codes.
+ */
+LTTNG_EXPORT extern enum lttng_error_code lttng_session_get_trace_format_descriptor(
+ const struct lttng_session *session,
+ struct lttng_trace_format_descriptor **p_lttng_trace_format_descriptor);
+
#ifdef __cplusplus
}
#endif