X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace2%2Ferror-reporting.h;h=43922e23d3fa1fd28643b142cf94b9654bd57b9e;hp=8539ddf803daf6f5adb66ac553ea5c10a2fdf427;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=43c59509042845f8d42c3e99ec74d45fa2dc0908 diff --git a/include/babeltrace2/error-reporting.h b/include/babeltrace2/error-reporting.h index 8539ddf8..43922e23 100644 --- a/include/babeltrace2/error-reporting.h +++ b/include/babeltrace2/error-reporting.h @@ -1,28 +1,12 @@ -#ifndef BABELTRACE2_ERROR_REPORTING_H -#define BABELTRACE2_ERROR_REPORTING_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: + * SPDX-License-Identifier: MIT * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * 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_ERROR_REPORTING_H +#define BABELTRACE2_ERROR_REPORTING_H + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif @@ -400,7 +384,6 @@ properties: @brief Error. - @typedef struct bt_error_cause bt_error_cause; @brief @@ -629,7 +612,7 @@ if no \bt_plugin provides the class of \bt_p{self_component}, with: Calls this function with \c __FILE__ and \c __LINE__ as the \bt_p{file_name} and \bt_p{line_number} parameters. */ -extern +extern __BT_ATTR_FORMAT_PRINTF(4, 5) bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_component( bt_self_component *self_component, const char *file_name, @@ -728,7 +711,7 @@ if no \bt_plugin provides the component class of Calls this function with \c __FILE__ and \c __LINE__ as the \bt_p{file_name} and \bt_p{line_number} parameters. */ -extern +extern __BT_ATTR_FORMAT_PRINTF(4, 5) bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_message_iterator( bt_self_message_iterator *self_message_iterator, @@ -820,7 +803,7 @@ if no \bt_plugin provides \bt_p{self_component_class}, with: Calls this function with \c __FILE__ and \c __LINE__ as the \bt_p{file_name} and \bt_p{line_number} parameters. */ -extern +extern __BT_ATTR_FORMAT_PRINTF(4, 5) bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_component_class( bt_self_component_class *self_component_class, @@ -884,7 +867,7 @@ format string parameter \bt_p{message_format}. Calls this function with \c __FILE__ and \c __LINE__ as the \bt_p{file_name} and \bt_p{line_number} parameters. */ -extern +extern __BT_ATTR_FORMAT_PRINTF(4, 5) bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_unknown( const char *module_name, const char *file_name,