#ifndef AGENTCELL_H
#define AGENTCELL_H
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
enum {
AGENTCELL_NET_NONE = 0,
AGENTCELL_NET_HOST = 1,
AGENTCELL_NET_VETH = 2,
};
struct agentcell_config {
const char *workdir;
const char *rootfs;
uint64_t mem_bytes;
double cpu_cores;
uint32_t pids;
int net;
const char *egress;
int secure;
int no_landlock;
int no_seccomp;
const char *const *egress_list;
};
int agentcell_spawn(const struct agentcell_config *cfg,
const char *argv[], const char *envp[],
int stdin_fd, int stdout_fd, int stderr_fd,
pid_t *out_pid);
int agentcell_release(pid_t pid);
const char *agentcell_version(void);
#ifdef __cplusplus
}
#endif
#endif