all repos — kuro @ 6fa747864efcb84863d09a9a937315e748a9f040

multiwindow text editor thing for plan9 with simple client VM and 9p interface

fns.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int strequ(char* s1, char* s2);
char* strcsw(char* s, char a, char b);
char* uvlong_to_hex(uvlong input, char* buf);

void start_9p(char* mtpt);

void kuro9p_set_mtpt(char* mtpt);
void kuro9p_write(char* path, char* data, int len);
char* kuro9p_read(char* path, char* buf, int len);

void nodetbl_add(NodeTable* self, NodeRef* node);
void nodetbl_del(NodeTable* self, uvlong id);

void node_setup(Node* self, uvlong id, int fd, Handler* handlers, KuroMemory* memory);
void node_execute(Node* self);
void node_loop(void* data);
Node* create_node(uvlong id, int fd, int new, char* filename);
void supervise_node(Node* self);
void node_cleanup(Node* self);
void memory_cleanup(KuroMemory* self);