mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
9cd22dc398
commit
b15032d223
3 changed files with 59 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue