bt2: put SWIG interface file C code in separate files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 2 Aug 2019 17:25:42 +0000 (13:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 2 Aug 2019 21:10:15 +0000 (17:10 -0400)
commit4212232cdba456554343e71b2449066e597d0f5b
treea06a16999d660aa3b2329ab76ec3a7994131587e
parent595cc8e03aa046738fc6b5124f53f76f21e5688c
bt2: put SWIG interface file C code in separate files

This patch moves any code in `%{ %}` blocks within SWIG interface files
(`.i`) to their own files. For a SWIG interface file named `file.i`, the
code is moved to `file.i.h`. In `file.i`, there is:

    %{
    #include "file.i.h"
    %}

This helps with text editors which do not always know how to highlight
the code of a `.i` file.

In `Makefile.am`, the `.i.h` files are added to the
`SWIG_INTERFACE_FILES` variable as they can be considered part of the
SWIG interface files.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I28975c9b3c827e65ba77af9134521ce1b920d740
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1812
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
15 files changed:
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/bt2/native_bt_component_class.i
src/bindings/python/bt2/bt2/native_bt_component_class.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_graph.i
src/bindings/python/bt2/bt2/native_bt_graph.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_message_iterator.i
src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_plugin.i
src/bindings/python/bt2/bt2/native_bt_plugin.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_trace.i
src/bindings/python/bt2/bt2/native_bt_trace.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_trace_class.i
src/bindings/python/bt2/bt2/native_bt_trace_class.i.h [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_value.i
src/bindings/python/bt2/bt2/native_bt_value.i.h [new file with mode: 0644]
This page took 0.025095 seconds and 4 git commands to generate.