libghostty
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_IO_H
8#define GHOSTTY_VT_IO_H
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
13#include <ghostty/vt/types.h>
14
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
49typedef bool (*GhosttyReaderFn)(
50 void* userdata,
51 uint8_t* buffer,
52 size_t capacity,
53 size_t* out_read);
54
77typedef bool (*GhosttyWriterFn)(
78 void* userdata,
79 const uint8_t* data,
80 size_t len);
81
87typedef struct {
88 GhosttyReaderFn read;
89 void* userdata;
91
97typedef struct {
98 GhosttyWriterFn write;
99 void* userdata;
101
130typedef bool (*GhosttyMimeReaderFn)(
131 void* userdata,
132 GhosttyString mime,
133 GhosttyWriter writer);
134
140typedef struct {
142 void* userdata;
144
145#ifdef __cplusplus
146}
147#endif
148
150
151#endif /* GHOSTTY_VT_IO_H */
bool(*) GhosttyReaderFn(void *userdata, uint8_t *buffer, size_t capacity, size_t *out_read)
Definition io.h:49
bool(*) GhosttyMimeReaderFn(void *userdata, GhosttyString mime, GhosttyWriter writer)
Definition io.h:130
bool(*) GhosttyWriterFn(void *userdata, const uint8_t *data, size_t len)
Definition io.h:77