mysh.h 629 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * File: mysh.h
  3. * Author: Arthur Brandao
  4. *
  5. * Created on 6 novembre 2018
  6. */
  7. #ifndef MYSH_H
  8. #define MYSH_H
  9. /* --- Extern --- */
  10. extern int status_cmd;
  11. extern int result_cmd;
  12. extern char base_path[];
  13. /* --- Fonctions --- */
  14. /**
  15. * Affiche le dossier de travail actuel
  16. * @param char* Chaine à afficher avant le dossier
  17. * @param char* Chaine à afficher après le dossier
  18. */
  19. void show_current_dir(const char*, const char*);
  20. /**
  21. * Execute l'ensemble des commandes d'une ligne
  22. * @param CommandTab La ligne de commande parser
  23. * @return Result
  24. */
  25. int run(CommandTab, int*);
  26. void handler(int);
  27. #endif /* MYSH_H */