Add `src/py-common`, containing bt_py_common_format_exception() for now
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Jun 2019 16:24:23 +0000 (12:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:33 +0000 (11:53 -0400)
commit2d7aa9b6584faa724fbb8640f9e045ee9e337ae8
tree5b5fda635f6c114eb9d057a2fb6875b71568e5d6
parentf090979c0d8327edb832efdd999d69b3ed700076
Add `src/py-common`, containing bt_py_common_format_exception() for now

This new convenience library is meant to contain functions used by
Python bindings and the Python plugin provider.

As of this patch, it only offers bt_py_common_format_exception(), which
is similar to what bt2_py_loge_exception() used to do in
`native_bt_component_class.i`, except that it returns the formatted
exception string instead of logging it directly. Now
bt2_py_loge_exception() uses bt_py_common_format_exception().

bt_py_common_format_exception() will be needed in a future patch to set
the message of an error cause when appending from the Python plugin
provider.

No functional change intended.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iaa9dc081e7d8a3d6c85420fcbbfc045a9d79bf27
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1556
Tested-by: jenkins <jenkins@lttng.org>
configure.ac
src/Makefile.am
src/bindings/python/bt2/bt2/native_bt.i
src/bindings/python/bt2/bt2/native_bt_component_class.i
src/bindings/python/bt2/setup.py.in
src/py-common/Makefile.am [new file with mode: 0644]
src/py-common/py-common.c [new file with mode: 0644]
src/py-common/py-common.h [new file with mode: 0644]
This page took 0.026171 seconds and 4 git commands to generate.