- int ret = false;
- const struct lttng_evaluation *evaluation =
- lttng_notification_get_evaluation(notification);
- const enum lttng_condition_type type =
- lttng_evaluation_get_type(evaluation);
-
- switch (type) {
- case LTTNG_CONDITION_TYPE_SESSION_CONSUMED_SIZE:
- case LTTNG_CONDITION_TYPE_BUFFER_USAGE_LOW:
- case LTTNG_CONDITION_TYPE_BUFFER_USAGE_HIGH:
- case LTTNG_CONDITION_TYPE_SESSION_ROTATION_ONGOING:
- case LTTNG_CONDITION_TYPE_SESSION_ROTATION_COMPLETED:
- break;
- case LTTNG_CONDITION_TYPE_ON_EVENT:
- {
- const char *trigger_name;
- enum lttng_evaluation_status evaluation_status;
-
- evaluation_status =
- lttng_evaluation_on_event_get_trigger_name(
- evaluation, &trigger_name);
- if (evaluation_status != LTTNG_EVALUATION_STATUS_OK) {
- fprintf(stderr, "Failed to get trigger name of event rule notification\n");
- ret = -1;
- break;
- }
+ const char *trigger_name = NULL;
+ enum lttng_trigger_status trigger_status;
+ const struct lttng_trigger *trigger;
+ bool names_match;