libghostty
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
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
49
typedef
bool (*
GhosttyReaderFn
)(
50
void
* userdata,
51
uint8_t* buffer,
52
size_t
capacity,
53
size_t
* out_read);
54
77
typedef
bool (*
GhosttyWriterFn
)(
78
void
* userdata,
79
const
uint8_t* data,
80
size_t
len);
81
87
typedef
struct
{
88
GhosttyReaderFn
read;
89
void
* userdata;
90
}
GhosttyReader
;
91
97
typedef
struct
{
98
GhosttyWriterFn
write;
99
void
* userdata;
100
}
GhosttyWriter
;
101
130
typedef
bool (*
GhosttyMimeReaderFn
)(
131
void
* userdata,
132
GhosttyString
mime,
133
GhosttyWriter
writer);
134
140
typedef
struct
{
141
GhosttyMimeReaderFn
read;
142
void
* userdata;
143
}
GhosttyMimeReader
;
144
145
#ifdef __cplusplus
146
}
147
#endif
148
150
151
#endif
/* GHOSTTY_VT_IO_H */
GhosttyReaderFn
bool(*) GhosttyReaderFn(void *userdata, uint8_t *buffer, size_t capacity, size_t *out_read)
Definition
io.h:49
GhosttyMimeReaderFn
bool(*) GhosttyMimeReaderFn(void *userdata, GhosttyString mime, GhosttyWriter writer)
Definition
io.h:130
GhosttyWriterFn
bool(*) GhosttyWriterFn(void *userdata, const uint8_t *data, size_t len)
Definition
io.h:77
GhosttyMimeReader
Definition
io.h:140
GhosttyReader
Definition
io.h:87
GhosttyString
Definition
types.h:266
GhosttyWriter
Definition
io.h:97
types.h
include
ghostty
vt
io.h
Generated by
1.18.0