mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-22 05:29:12 -05:00
Extract subprocessing into separate library
This commit is contained in:
19
include/linuxdeploy/util/subprocess.h
Normal file
19
include/linuxdeploy/util/subprocess.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Wrapper for cpp-subprocess. Provides additional convenience functions.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// library includes
|
||||
#include <subprocess.hpp>
|
||||
|
||||
namespace linuxdeploy {
|
||||
namespace util {
|
||||
namespace subprocess {
|
||||
using namespace ::subprocess;
|
||||
|
||||
// Reads output channels of existing Popen object into buffers and returns the contents
|
||||
std::pair<std::string, std::string> check_output_error(Popen& proc);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
// local includes
|
||||
#include "misc.h"
|
||||
#include "subprocess.h"
|
||||
|
||||
// import functions from misc module for convenience
|
||||
namespace linuxdeploy {
|
||||
|
||||
Reference in New Issue
Block a user