Elaborato_SO/inc/custom_shm.h

26 lines
416 B
C
Raw Permalink Normal View History

2023-05-14 18:51:32 +02:00
#ifndef SHM_H
#define SHM_H
2023-05-15 09:23:17 +02:00
#include <structures.h>
2023-05-29 15:01:11 +02:00
#define SHMKEY 'H'
2023-05-23 15:47:34 +02:00
extern int _SHMID;
2023-05-23 15:41:23 +02:00
2023-05-29 11:37:43 +02:00
void setupServerShm();
2023-05-29 13:12:38 +02:00
void setupClientShm();
2023-05-29 11:37:43 +02:00
2023-06-18 15:32:52 +02:00
int getShmidServer();
2023-06-18 15:55:45 +02:00
int getShmidClient();
2023-05-29 12:16:36 +02:00
tile_t * shmServerAt();
2023-05-29 13:06:22 +02:00
tile_t * shmClientAt();
2023-05-15 09:14:34 +02:00
void shmDt(void *shm_ptr);
void shmServerRm(int shmid);
2023-05-14 18:51:32 +02:00
2023-06-18 16:13:05 +02:00
#endif
/************************************
*VR471576
*Lorenzo Bianchi
*16/06/2023
*************************************/