mirror of
https://hacklab.nilfm.cc/kuro
synced 2024-10-22 15:11:49 +00:00
20 lines
692 B
C
20 lines
692 B
C
|
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);
|