bt2: include "py-common/py-common.h" where used
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 6 Nov 2024 05:11:57 +0000 (00:11 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 7 Nov 2024 21:03:40 +0000 (16:03 -0500)
`native_bt_log_and_append_error.hpp` specifically uses functions
declared in `py-common/py-common.h`, so include it there, instead of in
`native_bt.i`.

Change-Id: Ib14b92f8a000e9d0203e907aff1c59a77fb6c461
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13507
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/native_bt.i
src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp

index e55b9db8b6efe240f8f5a68b51fba51bdffec27f..b44f684b0e19a189e81ea9e1ec57665f8625ebb7 100644 (file)
@@ -29,7 +29,6 @@
 #include <babeltrace2/func-status.h>
 
 #include "common/assert.h"
-#include "py-common/py-common.h"
 
 /* Used by some interface files */
 #include "native_bt_bt2_objects.hpp"
index 86f28db3aef120193612cfdc9f73bf2dbdfd2ac8..b57e789befad302766bc1627b2f66ae321f85141 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "logging/comp-logging.h"
 
+#include "py-common/py-common.h"
+
 static void restore_current_thread_error_and_append_exception_chain_recursive(
     int active_log_level, PyObject *py_exc_value, bt_self_component_class *self_component_class,
     bt_self_component *self_component, bt_self_message_iterator *self_message_iterator,
This page took 0.027898 seconds and 4 git commands to generate.