diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-31 10:12:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:31 +0000 |
| commit | 2cc84db97978388475504592c88911046bcd2eb6 (patch) | |
| tree | 91efd350b53a6b296c0e78eb5781ef0e59cdddbf /shm.h | |
| parent | config: free URL bindings (diff) | |
urls: initial support for detecting URLs and rendering jump-labels
The jump labels work, but is currently hardcoded to use xdg-open
Diffstat (limited to 'shm.h')
| -rw-r--r-- | shm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |
