7#ifndef GHOSTTY_VT_SNAPSHOT_H
8#define GHOSTTY_VT_SNAPSHOT_H
145 GHOSTTY_SNAPSHOT_DECODER_OPT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
169 GHOSTTY_SNAPSHOT_DECODER_PROGRESS_KIND_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
387 GHOSTTY_SNAPSHOT_DECODER_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
445 size_t* out_written);
765 size_t* out_written);
#define GHOSTTY_ENUM_TYPED
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_new_buf(const GhosttyAllocator *allocator, GhosttySnapshotDecoder *decoder, const uint8_t *ptr, size_t len)
GHOSTTY_API void ghostty_snapshot_decoder_free(GhosttySnapshotDecoder decoder)
GHOSTTY_API GhosttyResult ghostty_snapshot_encode_alloc(GhosttyTerminal terminal, const GhosttyAllocator *allocator, uint8_t **out_ptr, size_t *out_len)
GhosttySnapshotDecoderOption
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_get_multi(GhosttySnapshotDecoder decoder, size_t count, const GhosttySnapshotDecoderData *keys, void **values, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_decode(GhosttySnapshotDecoder decoder, GhosttyTerminal *terminal)
GHOSTTY_API GhosttyResult ghostty_snapshot_encode(GhosttyTerminal terminal, GhosttyWriter writer)
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_set(GhosttySnapshotDecoder decoder, GhosttySnapshotDecoderOption option, const void *value)
GhosttySnapshotDecoderProgressKind
GHOSTTY_API GhosttyResult ghostty_snapshot_encode_buf(GhosttyTerminal terminal, uint8_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_next(GhosttySnapshotDecoder decoder)
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_get(GhosttySnapshotDecoder decoder, GhosttySnapshotDecoderData data, void *out)
struct GhosttySnapshotDecoderImpl * GhosttySnapshotDecoder
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_new(const GhosttyAllocator *allocator, GhosttySnapshotDecoder *decoder, GhosttyReader reader)
GhosttySnapshotDecoderData
GHOSTTY_API GhosttyResult ghostty_snapshot_decoder_ready(GhosttySnapshotDecoder decoder, GhosttyTerminal *terminal)
@ GHOSTTY_SNAPSHOT_DECODER_OPT_RETAIN_CONTINUATION
@ GHOSTTY_SNAPSHOT_DECODER_OPT_KITTY_IMAGE_STORAGE_LIMIT
@ GHOSTTY_SNAPSHOT_DECODER_OPT_MAX_CONTINUATION_BYTES
@ GHOSTTY_SNAPSHOT_DECODER_OPT_COMPRESS_HISTORY
@ GHOSTTY_SNAPSHOT_DECODER_OPT_INVALID
@ GHOSTTY_SNAPSHOT_DECODER_PROGRESS_KIND_IMAGE
@ GHOSTTY_SNAPSHOT_DECODER_PROGRESS_KIND_PAGE
@ GHOSTTY_SNAPSHOT_DECODER_DATA_KITTY_IMAGES_ALTERNATE
@ GHOSTTY_SNAPSHOT_DECODER_DATA_COMPRESS_HISTORY
@ GHOSTTY_SNAPSHOT_DECODER_DATA_RETAIN_CONTINUATION
@ GHOSTTY_SNAPSHOT_DECODER_DATA_KITTY_IMAGE_STORAGE_LIMIT
@ GHOSTTY_SNAPSHOT_DECODER_DATA_KITTY_IMAGES_PRIMARY
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_IMAGE_ID
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_IMAGE_BYTES
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_ROWS
@ GHOSTTY_SNAPSHOT_DECODER_DATA_KITTY_PENDING_BYTES_PRIMARY
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_KIND
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_SCREEN
@ GHOSTTY_SNAPSHOT_DECODER_DATA_INVALID
@ GHOSTTY_SNAPSHOT_DECODER_DATA_HISTORY_ROWS_PRIMARY
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_IMAGE_FRAME
@ GHOSTTY_SNAPSHOT_DECODER_DATA_HISTORY_ROWS_ALTERNATE
@ GHOSTTY_SNAPSHOT_DECODER_DATA_PROGRESS_REMAINING
@ GHOSTTY_SNAPSHOT_DECODER_DATA_KITTY_PENDING_BYTES_ALTERNATE
@ GHOSTTY_SNAPSHOT_DECODER_DATA_SOURCE_OFFSET
@ GHOSTTY_SNAPSHOT_DECODER_DATA_MAX_CONTINUATION_BYTES
struct GhosttyTerminalImpl * GhosttyTerminal