X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Ftools%2Fmakeappimagetool%2Fincludes%2Fsubprocess.h;fp=cinelerra-5.1%2Ftools%2Fmakeappimagetool%2Fincludes%2Fsubprocess.h;h=8d0a508b9ccc125e8fa19c11301b46f6d81ffa60;hb=194ea84742f4d9973b1aad567fe833ca13a8c4f9;hp=0000000000000000000000000000000000000000;hpb=d8393b13b37b8654f0039ec1dba9a71c02af9411;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/tools/makeappimagetool/includes/subprocess.h b/cinelerra-5.1/tools/makeappimagetool/includes/subprocess.h new file mode 100644 index 00000000..8d0a508b --- /dev/null +++ b/cinelerra-5.1/tools/makeappimagetool/includes/subprocess.h @@ -0,0 +1,32 @@ +#pragma once + +// system headers +#include +#include +#include +#include +#include + +// local headers +#include "subprocess_result.h" + +namespace linuxdeploy { + namespace subprocess { + typedef std::unordered_map subprocess_env_map_t; + + class subprocess { + private: + std::vector args_{}; + std::unordered_map env_{}; + + public: + subprocess(std::initializer_list args, subprocess_env_map_t env = {}); + + explicit subprocess(std::vector args, subprocess_env_map_t env = {}); + + subprocess_result run() const; + + std::string check_output() const; + }; + } +}