X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcondition.c;h=076f0627cb48387abfe217bf6f5d77e200ad2074;hp=6cebeb03f7bb9d35e651a9a110bb36f087cfd1fe;hb=25357057de5ae4dd2a572e8f9b893c1b90cbd60a;hpb=6c2fe31927dd91be5a75702cd5399fd3aa04174f diff --git a/src/common/condition.c b/src/common/condition.c index 6cebeb03f..076f0627c 100644 --- a/src/common/condition.c +++ b/src/common/condition.c @@ -1,23 +1,14 @@ /* - * Copyright (C) 2017 - Jérémie Galarneau + * Copyright (C) 2017 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include +#include #include #include #include @@ -142,6 +133,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);