macos: hook up change title events

This commit is contained in:
Mitchell Hashimoto
2023-02-18 17:02:02 -08:00
parent 6b450f7c7d
commit c709467bee
3 changed files with 23 additions and 3 deletions

View File

@@ -26,10 +26,12 @@ extern "C" {
// structs. To find the Zig struct, grep for this type name. The documentation
// for all of these types is available in the Zig source.
typedef void (*ghostty_runtime_wakeup_cb)(void *);
typedef void (*ghostty_runtime_set_title_cb)(void *, const char *);
typedef struct {
void *userdata;
ghostty_runtime_wakeup_cb wakeup_cb;
ghostty_runtime_set_title_cb set_title_cb;
} ghostty_runtime_config_s;
typedef struct {