From: Philippe Proulx Date: Tue, 8 Dec 2020 14:37:17 +0000 (-0500) Subject: Add libbabeltrace2 C++ interface base X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=01bf7a3a1fbc42bb8b069793619ca786f52ca6de;hp=01bf7a3a1fbc42bb8b069793619ca786f52ca6de 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 Change-Id: I1433ef3c1ed9cca5677012ebe68f63545dbbe547 Reviewed-on: https://review.lttng.org/c/babeltrace/+/4505 ---