X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Flttng-error.h;h=4757d3d60fcb046b6afd85b192d654ff8d1f2acf;hb=9df6c82a8ea4064f9868028b9fc3412f45adbb0a;hp=bddd39d7835db0d7534ab5a4ab0ca932fa2449ac;hpb=546699de452c27c8687a9c4e522359079ef5e4fa;p=lttng-tools.git diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h index bddd39d78..4757d3d60 100644 --- a/include/lttng/lttng-error.h +++ b/include/lttng/lttng-error.h @@ -6,20 +6,10 @@ * The following values are all the possible errors the lttng command line * client can quit with. * - * Copyright (C) 2012 - David Goulet + * Copyright (C) 2012 David Goulet * - * 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 */ #ifndef LTTNG_ERROR_H @@ -183,11 +173,12 @@ enum lttng_error_code { LTTNG_ERR_USER_NOT_FOUND = 160, /* User not found. */ LTTNG_ERR_GROUP_NOT_FOUND = 161, /* Group not found. */ + /* MUST be last element of the manually-assigned section of the enum */ + LTTNG_ERR_NR, + + /* Backward-compatibility assignments */ LTTNG_ERR_PID_TRACKED = LTTNG_ERR_ID_TRACKED, /* Backward compat alias to LTTNG_ERR_ID_TRACKED */ LTTNG_ERR_PID_NOT_TRACKED = LTTNG_ERR_ID_NOT_TRACKED, /* Backward compat alias to LTTNG_ERR_ID_NOT_TRACKED */ - - /* MUST be last element */ - LTTNG_ERR_NR, /* Last element */ }; /*