X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fexecute.h;fp=src%2Fcore%2Fexecute.h;h=f31f0c9f27efba8eb9f5f1dd7ed7a73be6397e20;hb=9fa95f8539a380e93f760956bc6982e57f5bf3af;hp=9d05d3a9dec95c7c0985408a07fc202dd264c3f8;hpb=a4390b6be8869172ccdd16fef208803fc6c7a114;p=elogind.git diff --git a/src/core/execute.h b/src/core/execute.h index 9d05d3a9d..f31f0c9f2 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -25,6 +25,7 @@ typedef struct ExecStatus ExecStatus; typedef struct ExecCommand ExecCommand; typedef struct ExecContext ExecContext; typedef struct ExecRuntime ExecRuntime; +typedef struct ExecParameters ExecParameters; #include #include @@ -191,21 +192,25 @@ struct ExecContext { #include "cgroup.h" +struct ExecParameters { + char **argv; + int *fds; unsigned n_fds; + char **environment; + bool apply_permissions; + bool apply_chroot; + bool apply_tty_stdin; + bool confirm_spawn; + CGroupControllerMask cgroup_supported; + const char *cgroup_path; + const char *runtime_prefix; + const char *unit_id; + usec_t watchdog_usec; + int *idle_pipe; +}; + int exec_spawn(ExecCommand *command, - char **argv, - ExecContext *context, - int fds[], unsigned n_fds, - char **environment, - bool apply_permissions, - bool apply_chroot, - bool apply_tty_stdin, - bool confirm_spawn, - CGroupControllerMask cgroup_mask, - const char *cgroup_path, - const char *runtime_prefix, - const char *unit_id, - usec_t watchdog_usec, - int pipe_fd[2], + const ExecContext *context, + const ExecParameters *exec_params, ExecRuntime *runtime, pid_t *ret);