X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace2%2Flogging.h;h=2b5da45cecd584aa0e5bf9470c46c8bfee92a47b;hp=1c931743252fb10d9171f9089d6bcaec75375415;hb=HEAD;hpb=43c59509042845f8d42c3e99ec74d45fa2dc0908 diff --git a/include/babeltrace2/logging.h b/include/babeltrace2/logging.h index 1c931743..14660186 100644 --- a/include/babeltrace2/logging.h +++ b/include/babeltrace2/logging.h @@ -1,28 +1,14 @@ -#ifndef BABELTRACE2_LOGGING_H -#define BABELTRACE2_LOGGING_H - /* - * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * SPDX-License-Identifier: MIT * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation */ +#ifndef BABELTRACE2_LOGGING_H +#define BABELTRACE2_LOGGING_H + +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif @@ -203,7 +189,8 @@ individual components and query operations. @sa bt_logging_get_global_level() — Returns the current library's global logging level. */ -extern void bt_logging_set_global_level(bt_logging_level logging_level); +extern void bt_logging_set_global_level(bt_logging_level logging_level) + __BT_NOEXCEPT; /*! @brief @@ -215,7 +202,7 @@ extern void bt_logging_set_global_level(bt_logging_level logging_level); @sa bt_logging_set_global_level() — Sets the current library's global logging level. */ -extern bt_logging_level bt_logging_get_global_level(void); +extern bt_logging_level bt_logging_get_global_level(void) __BT_NOEXCEPT; /*! @brief @@ -234,7 +221,7 @@ are not built. @sa bt_logging_get_global_level() — Returns the current library's global logging level. */ -extern bt_logging_level bt_logging_get_minimal_level(void); +extern bt_logging_level bt_logging_get_minimal_level(void) __BT_NOEXCEPT; /*! @} */