From b0bf46a7942611729dd8d9d8b8d78cedf26c4685 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Apr 2023 14:42:36 +0200 Subject: Add process_print_callback() function in addition to *_{start,run}_*() --- libbutl/process.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbutl/process.hxx') diff --git a/libbutl/process.hxx b/libbutl/process.hxx index 8648690..5a6837f 100644 --- a/libbutl/process.hxx +++ b/libbutl/process.hxx @@ -827,6 +827,15 @@ namespace butl const process_env&, A&&... args); + // Call the callback without actually running/starting anything. + // + template + void + process_print_callback (const C&, + const process_env&, + A&&... args); + // Conversion of types to their C string representations. Can be overloaded // (including via ADL) for custom types. The default implementation calls // to_string() which covers all the numeric values via std::to_string () and -- cgit v1.1