#include <urcu/list.h>
-#include <common/dynamic-array.h>
-#include <common/mi-lttng.h>
-#include <common/optional.h>
-#include <common/dynamic-buffer.h>
-#include <common/tracker.h>
+#include <common/dynamic-array.hpp>
+#include <common/mi-lttng.hpp>
+#include <common/optional.hpp>
+#include <common/dynamic-buffer.hpp>
+#include <common/tracker.hpp>
#include <lttng/lttng.h>
-#include "../command.h"
+#include "../command.hpp"
+namespace {
struct process_attr_command_args {
enum lttng_process_attr process_attr;
/* Present in the user's command. */
bool all;
struct lttng_dynamic_pointer_array string_args;
};
+} /* namespace */
enum cmd_type {
CMD_TRACK,
{
cmd->process_attr = process_attr;
cmd->all = false;
- lttng_dynamic_pointer_array_init(&cmd->string_args, NULL);
+ lttng_dynamic_pointer_array_init(&cmd->string_args, free);
}
static void process_attr_command_fini(struct process_attr_command_args *cmd)