bt2: move common internal functions to their own files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 2 Aug 2019 17:43:59 +0000 (13:43 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 2 Aug 2019 21:10:15 +0000 (17:10 -0400)
commit612a98703cbf22bd57f49bb9a22154acb214fbf1
tree0e9ca0743e92da0f6b6f4c2316f39b8c2479eff3
parent85f319c9c887dca7e1bafb16ef84bdee8d238d7f
bt2: move common internal functions to their own files

This patch moves C code from `native_bt_component_class.i` to the new
`native_bt_bt2_objects.h` and `native_bt_log_and_append_error.h` files,
namely:

* bt_bt2_init_from_bt2(), which was bt_bt2_cc_init_from_bt2()
* bt_bt2_exit_handler(), which was bt_bt2_cc_exit_handler()
* The common logging and error appending functions.

This is just cleaner as those functions are not strictly related to the
component class interface.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic9d7fed993b94b45f624e28e4c512b5ccab776bd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1814
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/bt2/__init__.py
src/bindings/python/bt2/bt2/native_bt.i
src/bindings/python/bt2/bt2/native_bt_bt2_objects.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_component_class.i
src/bindings/python/bt2/bt2/native_bt_component_class.i.h
src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h [new file with mode: 0644]
This page took 0.02646 seconds and 4 git commands to generate.