ipc.h 498 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * File: ipc.h
  3. * Author: Arthur Brandao
  4. *
  5. * Created on 21 décembre 2018
  6. */
  7. #ifndef IPC_H
  8. #define IPC_H
  9. /* --- Include --- */
  10. #include "constante.h"
  11. #include "sem.h"
  12. #include "shm.h"
  13. #include "subdiv.h"
  14. /* --- Structure --- */
  15. typedef struct{
  16. shared_mem memoire;
  17. shared_mem gestionnaire;
  18. shared_mem global;
  19. semaphore sem;
  20. }ipc_mysh;
  21. /* --- Extern --- */
  22. extern ipc_mysh ipc;
  23. /* --- Fonctions --- */
  24. boolean setup_ipc(char**);
  25. boolean end_ipc();
  26. #endif /* IPC_H */