src.ctf.lttng-live: add bt_common_lttng_live_url_parts_deleter
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Nov 2023 18:57:32 +0000 (18:57 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit9d0b798a513f4e3b177c15ea381040f4fe6011b9
treefaa181e53ade92fa0054d097b6421cd20d4050b1
parent7aed4059284fbb3a415604013afc0db6704bbfe0
src.ctf.lttng-live: add bt_common_lttng_live_url_parts_deleter

bt_common_lttng_live_url_parts can't be made a C++ object that
automatically manages its memory yet, since it's used in
babeltrace2-cfg-cli-args.c (C code).  Add an RAII type in lttng-live to
automatically call bt_common_destroy_lttng_live_url_parts in two places.

Change-Id: I233a5ba5a2829f4577c4ebbcc1ab0e630d039174
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8475
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12390
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/lttng-live/lttng-live.cpp
src/plugins/ctf/lttng-live/lttng-live.hpp
src/plugins/ctf/lttng-live/viewer-connection.cpp
This page took 0.0269 seconds and 4 git commands to generate.