summaryrefslogtreecommitdiff
path: root/src/macos/pardes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos/pardes.h')
-rw-r--r--src/macos/pardes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/macos/pardes.h b/src/macos/pardes.h
index 1591130e..9a64501a 100644
--- a/src/macos/pardes.h
+++ b/src/macos/pardes.h
@@ -129,7 +129,7 @@ typedef enum {
// ---------------------------------------------------------------- runtime
-// What the host lends the core. Two callbacks, because everything else the
+// What the host lends the core. Three callbacks, because everything else the
// core wants done it already does itself: it owns the ptys, and it opens URLs
// through /usr/bin/open. Copied by value during pardes_init, so the struct
// need only outlive that call.
@@ -145,6 +145,11 @@ typedef struct {
// The yank register changed. `text` is borrowed for the duration of the
// call only. Main thread, inside pardes_tick.
void (*set_clipboard)(void *userdata, const char *text, size_t len);
+
+ // Ask the host for the system clipboard. The host answers by calling
+ // pardes_paste, which may be synchronous inside this call. Main thread,
+ // inside pardes_tick.
+ void (*read_clipboard)(void *userdata);
} pardes_runtime_s;
// ---------------------------------------------------------------- lifecycle