lttng_event_expr_destroy((lttng_event_expr *) ptr);
}
+namespace {
struct parse_event_rule_res {
/* Owned by this. */
struct lttng_event_rule *er;
/* Array of `struct lttng_event_expr *` */
struct lttng_dynamic_pointer_array capture_descriptors;
};
+} /* namespace */
static
struct parse_event_rule_res parse_event_rule(int *argc, const char ***argv,
return c;
}
+namespace {
struct condition_descr {
const char *name;
struct lttng_condition *(*handler) (int *argc, const char ***argv,
int argc_offset);
};
+} /* namespace */
static const
struct condition_descr condition_descrs[] = {
return action;
}
+namespace {
struct action_descr {
const char *name;
struct lttng_action *(*handler) (int *argc, const char ***argv,
int argc_offset);
};
+} /* namespace */
static const
struct action_descr action_descrs[] = {