mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
shm: new functions: shm_cookie_*()
These functions return a SHM cookie given a terminal instance.
This commit is contained in:
parent
7b610e018b
commit
6a35abb6ca
2 changed files with 5 additions and 4 deletions
4
render.c
4
render.c
|
|
@ -39,10 +39,6 @@ static struct {
|
|||
|
||||
static void fdm_hook_refresh_pending_terminals(struct fdm *fdm, void *data);
|
||||
|
||||
#define shm_cookie_grid(term) ((unsigned long)((uintptr_t)term + 0))
|
||||
#define shm_cookie_search(term) ((unsigned long)((uintptr_t)term + 1))
|
||||
#define shm_cookie_csd(term, n) ((unsigned long)((uintptr_t)term + 2 + (n))) /* Should be placed last */
|
||||
|
||||
struct renderer *
|
||||
render_init(struct fdm *fdm, struct wayland *wayl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue