#include "lttng/tracker.h"
#define _LGPL_SOURCE
-#include "mi-lttng.h"
-#include <common/config/session-config.h>
-#include <common/defaults.h>
-#include <common/tracker.h>
+#include "mi-lttng.hpp"
+#include <common/config/session-config.hpp>
+#include <common/defaults.hpp>
+#include <common/tracker.hpp>
#include <lttng/channel.h>
-#include <lttng/snapshot-internal.h>
+#include <lttng/snapshot-internal.hpp>
#define MI_SCHEMA_MAJOR_VERSION 4
{
struct mi_writer *mi_writer;
- mi_writer = (struct mi_writer *) zmalloc(sizeof(struct mi_writer));
+ mi_writer = zmalloc<struct mi_writer>();
if (!mi_writer) {
PERROR("zmalloc mi_writer_create");
goto end;
return ret;
}
-int mi_lttng_snapshot_record(struct mi_writer *writer,
- const char *current_session_name, const char *url,
+int mi_lttng_snapshot_record(struct mi_writer *writer, const char *url,
const char *cmdline_ctrl_url, const char *cmdline_data_url)
{
int ret;