X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fexec.h;h=b76f01e5a650a01451318fd309032ac2d6525ce0;hb=768d45580fc176cedd04db0b05621cdf596751d5;hp=b7f9bced556ad6efae109bb3092acd2dade5b7e8;hpb=471a5e5f9928e2d324b2e10422a420f458bd63ff;p=ion3.git diff --git a/ioncore/exec.h b/ioncore/exec.h index b7f9bce..b76f01e 100644 --- a/ioncore/exec.h +++ b/ioncore/exec.h @@ -12,9 +12,10 @@ #ifndef ION_IONCORE_EXEC_H #define ION_IONCORE_EXEC_H +#include +#include #include "common.h" #include "rootwin.h" -#include enum{ IONCORE_SM_RESIGN, @@ -24,11 +25,22 @@ enum{ IONCORE_SM_SNAPSHOT }; -extern void ioncore_do_exec(const char *cmd); -extern bool ioncore_exec_on_rootwin(WRootWin *rootwin, const char *cmd); + +INTRSTRUCT(WExecP); + +DECLSTRUCT(WExecP){ + WRegion *target; + const char *cmd; + const char *wd; +}; + + extern bool ioncore_exec(const char *cmd); -extern void ioncore_setup_environ(int scr); +extern int ioncore_do_exec_on(WRegion *reg, const char *cmd, const char *wd, + ExtlFn errh); extern bool ioncore_popen_bgread(const char *cmd, ExtlFn h, ExtlFn errh); +extern void ioncore_setup_environ(const WExecP *p); +extern void ioncore_setup_display(int xscr); extern bool ioncore_set_smhook(void (*fn)(int what)); @@ -44,4 +56,7 @@ extern bool ioncore_do_snapshot(); extern void ioncore_emergency_snapshot(); +/* const WExecP* parameter */ +extern WHook *ioncore_exec_environ_hook; + #endif /* ION_IONCORE_EXEC_H */