libghostty-vt 0.0.0
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
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
65typedef bool (*GhosttyReaderFn)(
66 void* userdata,
67 uint8_t* buffer,
68 size_t capacity,
69 size_t* out_read);
70
93typedef bool (*GhosttyWriterFn)(
94 void* userdata,
95 const uint8_t* data,
96 size_t len);
97
103typedef struct {
104 GhosttyReaderFn read;
105 void* userdata;
107
113typedef struct {
114 GhosttyWriterFn write;
115 void* userdata;
117
146typedef bool (*GhosttyMimeReaderFn)(
147 void* userdata,
148 GhosttyString mime,
149 GhosttyWriter writer);
150
156typedef struct {
158 void* userdata;
160
161#ifdef __cplusplus
162}
163#endif
164
166
167#endif /* GHOSTTY_VT_IO_H */
bool(* GhosttyWriterFn)(void *userdata, const uint8_t *data, size_t len)
Definition io.h:93
bool(* GhosttyMimeReaderFn)(void *userdata, GhosttyString mime, GhosttyWriter writer)
Definition io.h:146
bool(* GhosttyReaderFn)(void *userdata, uint8_t *buffer, size_t capacity, size_t *out_read)
Definition io.h:65