1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * File: mysh.h
- * Author: Arthur Brandao
- *
- * Created on 6 novembre 2018
- */
- #ifndef MYSH_H
- #define MYSH_H
- /* --- Extern --- */
- extern int status_cmd;
- extern int result_cmd;
- extern char base_path[];
- /* --- Fonctions --- */
- /**
- * Affiche le dossier de travail actuel
- * @param char* Chaine à afficher avant le dossier
- * @param char* Chaine à afficher après le dossier
- */
- void show_current_dir(const char*, const char*);
- /**
- * Execute l'ensemble des commandes d'une ligne
- * @param CommandTab La ligne de commande parser
- * @return Result
- */
- int run(CommandTab, int*);
- /**
- * Gestionnaire de signaux
- * @param int Le type de singal reçu
- */
- void handler(int);
- #endif /* MYSH_H */
|