esh_main_loop.h 724 B

123456789101112131415161718192021222324252627282930
  1. #include "esh_types.h"
  2. #ifndef ESH_MAIN_LOOP_H
  3. #define ESH_MAIN_LOOP_H
  4. void EShRunLoop();
  5. void EShShowMsg();
  6. EShJob* EShParseCommandIntoJobs(char* command, int* jobs_num);
  7. void EShSplitJobCommand(EShJob* job, char delim); // splits command into tokens (command arguments)
  8. void EShExecuteJobs(int jobs_num, EShJob* jobs_list);
  9. void EShSetJobCommandType(EShJob* job);
  10. int EShRunJob(EShJob* job); // returns exit code of job
  11. int EShIsInnerJob(EShJob* job);
  12. int EShProcessInnerJob(EShJob* job);
  13. int EShProcessExecJob(EShJob* job);
  14. void EShSubstituteShellValuesArgument(char** arg);
  15. void EShPrintJobsDebugInfo(const char* command, EShJob* jobs, int jobs_num);
  16. #endif // ESH_MAIN_LOOP_H