doc/api/libbabeltrace2/DoxygenLayout.xml: use `topics` tab
[babeltrace.git] / include / babeltrace2 / graph / interrupter.h
index 56c022e2ce2a7772e7222e4c83afeb7fa9f7ee7b..1c8729b4724dbd80b005b4228c7af93e07251627 100644 (file)
@@ -1,28 +1,14 @@
-#ifndef BABELTRACE2_GRAPH_INTERRUPTER_H
-#define BABELTRACE2_GRAPH_INTERRUPTER_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_GRAPH_INTERRUPTER_H
+#define BABELTRACE2_GRAPH_INTERRUPTER_H
+
+/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
+
 #ifndef __BT_IN_BABELTRACE_H
 # error "Please include <babeltrace2/babeltrace.h> instead."
 #endif
@@ -122,7 +108,7 @@ On success, the returned interrupter is \em not set
 @returns
     New interrupter reference, or \c NULL on memory error.
 */
-extern bt_interrupter *bt_interrupter_create(void);
+extern bt_interrupter *bt_interrupter_create(void) __BT_NOEXCEPT;
 
 /*! @} */
 
@@ -148,7 +134,7 @@ After you call this function, bt_interrupter_is_set() returns
 @sa bt_interrupter_is_set() &mdash;
     Returns whether or not an interrupter is set.
 */
-extern void bt_interrupter_set(bt_interrupter *interrupter);
+extern void bt_interrupter_set(bt_interrupter *interrupter) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -167,7 +153,7 @@ After you call this function, bt_interrupter_is_set() returns
 @sa bt_interrupter_is_set() &mdash;
     Returns whether or not an interrupter is set.
 */
-extern void bt_interrupter_reset(bt_interrupter *interrupter);
+extern void bt_interrupter_reset(bt_interrupter *interrupter) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -186,7 +172,8 @@ extern void bt_interrupter_reset(bt_interrupter *interrupter);
 @sa bt_interrupter_reset() &mdash;
     Resets an interrupter.
 */
-extern bt_bool bt_interrupter_is_set(const bt_interrupter *interrupter);
+extern bt_bool bt_interrupter_is_set(const bt_interrupter *interrupter)
+               __BT_NOEXCEPT;
 
 /*! @} */
 
@@ -210,7 +197,8 @@ extern bt_bool bt_interrupter_is_set(const bt_interrupter *interrupter);
 @sa bt_interrupter_put_ref() &mdash;
     Decrements the reference count of an interrupter.
 */
-extern void bt_interrupter_get_ref(const bt_interrupter *interrupter);
+extern void bt_interrupter_get_ref(const bt_interrupter *interrupter)
+               __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -227,7 +215,8 @@ extern void bt_interrupter_get_ref(const bt_interrupter *interrupter);
 @sa bt_interrupter_get_ref() &mdash;
     Increments the reference count of an interrupter.
 */
-extern void bt_interrupter_put_ref(const bt_interrupter *interrupter);
+extern void bt_interrupter_put_ref(const bt_interrupter *interrupter)
+               __BT_NOEXCEPT;
 
 /*!
 @brief
This page took 0.02489 seconds and 4 git commands to generate.