diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-05 07:49:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-05 07:49:32 +0000 |
| commit | b15032d223115ad0f65a182804ba914bf0fcc51b (patch) | |
| tree | 0cb05b53dc25fe42024f82fe81db4cf5184a015f /selection.h | |
| parent | selection: async send: handle POLLHUP (diff) | |
selection: text_from_{clipboard,primary}: add 'done' callback
This callback is *always* called, including when there has been an
error.
This is in preparation for making text_from_{clipboard,primary}
asynchronous.
Diffstat (limited to 'selection.h')
| -rw-r--r-- | selection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/selection.h b/selection.h index 7345766c..9ff40919 100644 --- a/selection.h +++ b/selection.h @@ -29,9 +29,10 @@ bool text_to_clipboard(struct terminal *term, char *text, uint32_t serial); void text_from_clipboard( struct terminal *term, uint32_t serial, void (*cb)(const char *data, size_t size, void *user), - void *user); + void (*done)(void *user), void *user); bool text_to_primary(struct terminal *term, char *text, uint32_t serial); void text_from_primary( - struct terminal *term, void (*cb)(const char *data, size_t size, void *user), - void *user); + struct terminal *term, + void (*cb)(const char *data, size_t size, void *user), + void (*dont)(void *user), void *user); |
