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