Add session rotation ongoing/completed conditions
[lttng-tools.git] / src / common / condition.c
index 6cebeb03f7bb9d35e651a9a110bb36f087cfd1fe..c777fb9c553f759ed57e44d0e51fa44e41d4e9cc 100644 (file)
@@ -18,6 +18,7 @@
 #include <lttng/condition/condition-internal.h>
 #include <lttng/condition/buffer-usage-internal.h>
 #include <lttng/condition/session-consumed-size-internal.h>
+#include <lttng/condition/session-rotation-internal.h>
 #include <common/macros.h>
 #include <common/error.h>
 #include <common/dynamic-buffer.h>
@@ -142,6 +143,12 @@ ssize_t lttng_condition_create_from_buffer(
        case LTTNG_CONDITION_TYPE_SESSION_CONSUMED_SIZE:
                create_from_buffer = lttng_condition_session_consumed_size_create_from_buffer;
                break;
+       case LTTNG_CONDITION_TYPE_SESSION_ROTATION_ONGOING:
+               create_from_buffer = lttng_condition_session_rotation_ongoing_create_from_buffer;
+               break;
+       case LTTNG_CONDITION_TYPE_SESSION_ROTATION_COMPLETED:
+               create_from_buffer = lttng_condition_session_rotation_completed_create_from_buffer;
+               break;
        default:
                ERR("Attempted to create condition of unknown type (%i)",
                                (int) condition_comm->condition_type);
This page took 0.023034 seconds and 4 git commands to generate.