Update dialog

This commit is contained in:
Robin Davies
2024-08-25 00:20:48 -04:00
parent faee21041a
commit b989ac5c92
25 changed files with 1857 additions and 221 deletions
+19 -11
View File
@@ -20,20 +20,28 @@
#pragma once
#include <string>
namespace pipedal {
// exec a command, returning the actual exit code (unlike execXX() or system() )
int sysExec(const char*szCommand);
namespace pipedal
{
// exec a command, returning the actual exit code (unlike execXX() or system() )
int sysExec(const char *szCommand);
// execute a command, suppressing output.
int silentSysExec(const char *szCommand);
// execute a command, suppressing output.
int silentSysExec(const char *szCommand);
struct SysExecOutput
{
int exitCode;
std::string output;
};
using ProcessId = int64_t; // platform-agnostic wrapper for pid_t;
// Returns a pid or -1 on errror.
ProcessId sysExecAsync(const std::string&command);
SysExecOutput sysExecForOutput(const std::string& command, const std::string&args);
void sysExecTerminate(ProcessId pid_,int termTimeoutMs = 1000,int killTimeoutMs = 500 ); // returns the process's exit status.
int sysExecWait(ProcessId pid);
using ProcessId = int64_t; // platform-agnostic wrapper for pid_t;
// Returns a pid or -1 on errror.
ProcessId sysExecAsync(const std::string &command);
std::string getSelfExePath();
void sysExecTerminate(ProcessId pid_, int termTimeoutMs = 1000, int killTimeoutMs = 500); // returns the process's exit status.
int sysExecWait(ProcessId pid);
std::string getSelfExePath();
}