Add libbabeltrace2 C++ interface base
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 8 Dec 2020 14:37:17 +0000 (09:37 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jan 2022 16:22:26 +0000 (11:22 -0500)
commit01bf7a3a1fbc42bb8b069793619ca786f52ca6de
tree9345a479db60a5678ea395789253b9201f21dfc2
parent4164020e790fa6c0700715936b40a3fa46df479e
Add libbabeltrace2 C++ interface base

This patch adds three new C++ headers to `src/cpp-common/bt2/internal`:

`borrowed-obj.hpp`:
    Defines `bt2::internal::BorrowedObj` which wraps a libbabeltrace2
    object pointer without managing reference counting.

`shared-obj.hpp`:
    Defines `bt2::internal::SharedObj` which contains a
    `bt2::internal::BorrowedObj` instance and manages the underlying
    reference count of the libbabeltrace2 object.

Those classes are meant to be used by public classes in
`src/cpp-common/bt2`, hence their `internal` namespace.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I1433ef3c1ed9cca5677012ebe68f63545dbbe547
Reviewed-on: https://review.lttng.org/c/babeltrace/+/4505
configure.ac
src/Makefile.am
src/cpp-common/Makefile.am [new file with mode: 0644]
src/cpp-common/bt2/internal/borrowed-obj.hpp [new file with mode: 0644]
src/cpp-common/bt2/internal/shared-obj.hpp [new file with mode: 0644]
This page took 0.024193 seconds and 4 git commands to generate.