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
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
48
typedef
bool (*
GhosttyReaderFn
)(
49
void
* userdata,
50
uint8_t* buffer,
51
size_t
capacity,
52
size_t
* out_read);
53
76
typedef
bool (*
GhosttyWriterFn
)(
77
void
* userdata,
78
const
uint8_t* data,
79
size_t
len);
80
86
typedef
struct
{
87
GhosttyReaderFn
read;
88
void
* userdata;
89
}
GhosttyReader
;
90
96
typedef
struct
{
97
GhosttyWriterFn
write;
98
void
* userdata;
99
}
GhosttyWriter
;
100
101
#ifdef __cplusplus
102
}
103
#endif
104
106
107
#endif
/* GHOSTTY_VT_IO_H */
GhosttyWriterFn
bool(* GhosttyWriterFn)(void *userdata, const uint8_t *data, size_t len)
Definition
io.h:76
GhosttyReaderFn
bool(* GhosttyReaderFn)(void *userdata, uint8_t *buffer, size_t capacity, size_t *out_read)
Definition
io.h:48
GhosttyReader
Definition
io.h:86
GhosttyWriter
Definition
io.h:96
include
ghostty
vt
io.h
Generated by
1.16.1