aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shm.h b/shm.h
index fc48308e..2e819369 100644
--- a/shm.h
+++ b/shm.h
@@ -52,3 +52,6 @@ static inline unsigned long shm_cookie_search(const struct terminal *term) { ret
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_render_timer(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 3; }
static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 4 + (n)); }
+
+struct url;
+static inline unsigned long shm_cookie_url(const struct url *url) { return (unsigned long)(uintptr_t)url; }