| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright (C) 2019 EfficiOS, Inc. |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H |
| 8 | #define BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H |
| 9 | |
| 10 | #include <babeltrace2/babeltrace.h> |
| 11 | #include <common/common.h> |
| 12 | #include <common/macros.h> |
| 13 | #include <glib.h> |
| 14 | |
| 15 | gchar *format_bt_error_cause( |
| 16 | const bt_error_cause *error_cause, |
| 17 | unsigned int columns, |
| 18 | bt_logging_level log_level, |
| 19 | enum bt_common_color_when use_colors); |
| 20 | |
| 21 | gchar *format_bt_error( |
| 22 | const bt_error *error, |
| 23 | unsigned int columns, |
| 24 | bt_logging_level log_level, |
| 25 | enum bt_common_color_when use_colors); |
| 26 | |
| 27 | #endif /* BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H */ |