From 58867b0717ba74542c3cc6b3a0934c12bbce5193 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sun, 13 Jul 2025 22:07:38 -0500 Subject: [PATCH] cli/gtk: add some more C bits --- include/ghostty.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/ghostty.h b/include/ghostty.h index d57665a5a..fcad7af30 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -803,6 +803,21 @@ typedef struct { ghostty_runtime_close_surface_cb close_surface_cb; } ghostty_runtime_config_s; +// apprt.ipc.Target.Key +typedef enum { + GHOSTTY_IPC_TARGET_CLASS, + GHOSTTY_IPC_TARGET_DETECT, +} ghostty_ipc_target_tag_e; + +typedef union { + char *klass; +} ghostty_ipc_target_u; + +typedef struct { + ghostty_ipc_target_tag_e tag; + ghostty_ipc_target_u target; +} chostty_ipc_target_s; + // apprt.ipc.Action.NewWindow typedef struct { // This should be a null terminated list of strings.