Tilde Friends
taskstub.js.h
1#pragma once
2
10#include "quickjs.h"
11#include "uv.h"
12
14typedef int taskid_t;
15
17typedef struct _tf_packetstream_t tf_packetstream_t;
18
20typedef struct _tf_task_t tf_task_t;
21
23typedef struct _tf_taskstub_t tf_taskstub_t;
24
27
34
41
48
55
62
70
76void tf_taskstub_on_error(tf_taskstub_t* stub, JSValue error);
77
83void tf_taskstub_on_print(tf_taskstub_t* stub, JSValue arguments);
84
struct JSContext JSContext
Definition: api.js.h:10
struct _tf_task_t tf_task_t
Definition: file.js.h:14
struct _tf_packetstream_t tf_packetstream_t
Definition: packetstream.h:15
struct _tf_taskstub_t tf_taskstub_t
Definition: serialize.h:15
int taskid_t
Definition: task.h:22
taskid_t tf_taskstub_get_id(const tf_taskstub_t *stub)
JSValue tf_taskstub_get_task_object(const tf_taskstub_t *stub)
JSValue tf_taskstub_register(JSContext *context)
tf_taskstub_t * tf_taskstub_create_parent(tf_task_t *task, uv_file file)
int taskid_t
Definition: taskstub.js.h:14
tf_task_t * tf_taskstub_get_owner(const tf_taskstub_t *stub)
void tf_taskstub_startup()
void tf_taskstub_on_print(tf_taskstub_t *stub, JSValue arguments)
tf_packetstream_t * tf_taskstub_get_stream(const tf_taskstub_t *stub)
void tf_taskstub_on_error(tf_taskstub_t *stub, JSValue error)