cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[babeltrace.git] / include / babeltrace2 / logging.h
index 1c931743252fb10d9171f9089d6bcaec75375415..146601867494b209495621091fc502d0cd71a93a 100644 (file)
@@ -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 <babeltrace2/babeltrace.h> */
+
 #ifndef __BT_IN_BABELTRACE_H
 # error "Please include <babeltrace2/babeltrace.h> instead."
 #endif
@@ -203,7 +189,8 @@ individual components and query operations.
 @sa bt_logging_get_global_level() &mdash;
     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() &mdash;
     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() &mdash;
     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;
 
 /*! @} */
 
This page took 0.023995 seconds and 4 git commands to generate.