X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fcurrent-thread.c;h=5547a146b5e4b156b422b0767f954c1678db35f7;hb=5a3fec55322bf221441f86d5ffedeb049d08d200;hp=9e14e4e70e895920a852707ca98d5464e12cfece;hpb=1778c2a4134647150b199b2b57130817144446b0;p=babeltrace.git diff --git a/src/lib/current-thread.c b/src/lib/current-thread.c index 9e14e4e7..5547a146 100644 --- a/src/lib/current-thread.c +++ b/src/lib/current-thread.c @@ -12,7 +12,6 @@ #include #include "error.h" -#include "common/assert.h" #include "lib/assert-cond.h" #include "lib/func-status.h" @@ -28,6 +27,7 @@ */ static __thread struct bt_error *thread_error; +BT_EXPORT const struct bt_error *bt_current_thread_take_error(void) { struct bt_error *error = thread_error; @@ -38,6 +38,7 @@ const struct bt_error *bt_current_thread_take_error(void) return error; } +BT_EXPORT void bt_current_thread_clear_error(void) { bt_error_destroy(thread_error); @@ -46,6 +47,7 @@ void bt_current_thread_clear_error(void) thread_error = NULL; } +BT_EXPORT void bt_current_thread_move_error(const struct bt_error *error) { BT_ASSERT_PRE_ERROR_NON_NULL(error); @@ -82,6 +84,7 @@ end: return status; } +BT_EXPORT enum bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_unknown( const char *module_name, const char *file_name, @@ -110,6 +113,7 @@ end: return status; } +BT_EXPORT enum bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_component( bt_self_component *self_comp, const char *file_name, @@ -138,6 +142,7 @@ end: return status; } +BT_EXPORT enum bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_component_class( bt_self_component_class *self_comp_class, const char *file_name, @@ -166,6 +171,7 @@ end: return status; } +BT_EXPORT enum bt_current_thread_error_append_cause_status bt_current_thread_error_append_cause_from_message_iterator( bt_self_message_iterator *self_iter, const char *file_name,