7#ifndef GHOSTTY_VT_SYS_H
8#define GHOSTTY_VT_SYS_H
71 GHOSTTY_SYS_LOG_LEVEL_ERROR = 0,
72 GHOSTTY_SYS_LOG_LEVEL_WARNING = 1,
73 GHOSTTY_SYS_LOG_LEVEL_INFO = 2,
74 GHOSTTY_SYS_LOG_LEVEL_DEBUG = 3,
75 GHOSTTY_SYS_LOG_LEVEL_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
101 const uint8_t* scope,
103 const uint8_t* message,
168 GHOSTTY_SYS_OPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
199 const uint8_t* scope,
201 const uint8_t* message,
GHOSTTY_API GhosttyResult ghostty_sys_set(GhosttySysOption option, const void *value)
void(* GhosttySysLogFn)(void *userdata, GhosttySysLogLevel level, const uint8_t *scope, size_t scope_len, const uint8_t *message, size_t message_len)
GHOSTTY_API void ghostty_sys_log_stderr(void *userdata, GhosttySysLogLevel level, const uint8_t *scope, size_t scope_len, const uint8_t *message, size_t message_len)
bool(* GhosttySysDecodePngFn)(void *userdata, const GhosttyAllocator *allocator, const uint8_t *data, size_t data_len, GhosttySysImage *out)
@ GHOSTTY_SYS_OPT_DECODE_PNG
@ GHOSTTY_SYS_OPT_USERDATA
#define GHOSTTY_ENUM_TYPED