mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
346ec21c4c
shm_open is a POSIX function creating an in-memory file. Using it simplifies the code and removes the dependency on XDG_RUNTIME_DIR. The only downside is that we need to generate a random name for the shm file.
7 lines
110 B
C
7 lines
110 B
C
#ifndef UTIL_SHM_H
|
|
#define UTIL_SHM_H
|
|
|
|
int create_shm_file(void);
|
|
int allocate_shm_file(size_t size);
|
|
|
|
#endif
|