all repos — kuro @ 4ed8a026bb214e9ee19387226dbd51d9bc63ad74

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
int strequ(char* s1, char* s2);
char* strcsw(char* s, char a, char b);
char* uvlong_to_hex(uvlong input, char* buf);
int ensure(char* path);

void start_9p(Node* n);

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 node_setup(Node* self, Handler* handlers, KuroMemory* memory);
void node_execute(Node* self);
void node_loop(void* data);
Node* create_node(char* filename);
void supervise_node(Node* self);
void node_cleanup(Node* self);
void memory_cleanup(KuroMemory* self);