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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 29 Jun 2019 06:02:17 +0000 (02:02 -0400)
commit7085eeaab415fdeb43a5f77c9383f831a4b85acf
tree4bbec811698115d04d47cdd7ad788a8b9d70e386
parent4881a20e353d8da38039cd51370024c40c36ba64
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.025429 seconds and 4 git commands to generate.