mysh.h 702 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /**
  27. * Gestionnaire de signaux
  28. * @param int Le type de singal reçu
  29. */
  30. void handler(int);
  31. #endif /* MYSH_H */