#define _LGPL_SOURCE
#include <string.h>
-#include <common/sessiond-comm/sessiond-comm.h>
+#include <common/sessiond-comm/sessiond-comm.hpp>
#include <lttng/lttng-error.h>
#include <lttng/snapshot.h>
-#include <lttng/snapshot-internal.h>
+#include <lttng/snapshot-internal.hpp>
-#include "lttng-ctl-helper.h"
+#include "lttng-ctl-helper.hpp"
/*
* Add an output object to a session identified by name.
goto error;
}
- new_list = (lttng_snapshot_output_list *) zmalloc(sizeof(*new_list));
+ new_list = zmalloc<lttng_snapshot_output_list>();
if (!new_list) {
ret = -LTTNG_ERR_NOMEM;
goto error;
{
struct lttng_snapshot_output *output;
- output = (lttng_snapshot_output *) zmalloc(sizeof(struct lttng_snapshot_output));
+ output = zmalloc<lttng_snapshot_output>();
if (!output) {
goto error;
}