mirror of
https://github.com/decompals/wibo.git
synced 2025-10-15 22:55:11 +00:00
25 lines
699 B
C++
25 lines
699 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
#include <optional>
|
|
#include <sched.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace processes {
|
|
struct Process {
|
|
pid_t pid;
|
|
uint32_t exitCode;
|
|
uint32_t forcedExitCode;
|
|
bool terminationRequested;
|
|
};
|
|
|
|
void *allocProcessHandle(pid_t pid);
|
|
Process* processFromHandle(void* hHandle, bool pop);
|
|
|
|
std::optional<std::filesystem::path> resolveExecutable(const std::string &command, bool searchPath);
|
|
int spawnViaWibo(const std::filesystem::path &hostExecutable, const std::vector<std::string> &arguments, pid_t *pidOut);
|
|
std::vector<std::string> splitCommandLine(const char *commandLine);
|
|
}
|