diff options
Diffstat (limited to 'include/shell.h')
-rw-r--r-- | include/shell.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/shell.h b/include/shell.h new file mode 100644 index 0000000..2d115f9 --- /dev/null +++ b/include/shell.h @@ -0,0 +1,18 @@ +#ifndef SPM_SHELL_H +#define SPM_SHELL_H + +#define SHELL_DEFAULT 1 << 0 +#define SHELL_OUTPUT 1 << 1 +#define SHELL_BENCHMARK 1 << 2 + +typedef struct { + struct timespec start_time, stop_time; + double time_elapsed; + int returncode; + char *output; +} Process; + +void shell(Process **proc_info, u_int64_t option, const char *fmt, ...); +void shell_free(Process *proc_info); + +#endif //SPM_SHELL_H |