mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
shm: add shm_cookie_scrollback_indicator()
This commit is contained in:
parent
d180de00a9
commit
a39c490d9b
1 changed files with 2 additions and 1 deletions
3
shm.h
3
shm.h
|
|
@ -49,4 +49,5 @@ void shm_purge(struct wl_shm *shm, unsigned long cookie);
|
|||
struct terminal;
|
||||
static inline unsigned long shm_cookie_grid(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 0); }
|
||||
static inline unsigned long shm_cookie_search(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 1); }
|
||||
static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 2 + (n)); }
|
||||
static inline unsigned long shm_cookie_scrollback_indicator(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 2; }
|
||||
static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 3 + (n)); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue