#pragma once #include #include #include #include #include #include namespace processes { struct Process { pid_t pid; uint32_t exitCode; }; void *allocProcessHandle(pid_t pid); Process* processFromHandle(void* hHandle, bool pop); std::optional resolveExecutable(const std::string &command, bool searchPath); int spawnViaWibo(const std::filesystem::path &hostExecutable, const std::vector &arguments, pid_t *pidOut); std::vector splitCommandLine(const char *commandLine); }