Move all JS interface things into .js.c files with _register() functions.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3671 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
21
src/taskstub.js.h
Normal file
21
src/taskstub.js.h
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "quickjs.h"
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
typedef int taskid_t;
|
||||
|
||||
typedef struct _tf_packetstream_t tf_packetstream_t;
|
||||
typedef struct _tf_task_t tf_task_t;
|
||||
typedef struct _tf_taskstub_t tf_taskstub_t;
|
||||
|
||||
void tf_taskstub_startup();
|
||||
JSValue tf_taskstub_register(JSContext* context);
|
||||
taskid_t tf_taskstub_get_id(const tf_taskstub_t* stub);
|
||||
JSValue tf_taskstub_get_task_object(const tf_taskstub_t* stub);
|
||||
tf_packetstream_t* tf_taskstub_get_stream(const tf_taskstub_t* stub);
|
||||
tf_task_t* tf_taskstub_get_owner(const tf_taskstub_t* stub);
|
||||
tf_taskstub_t* tf_taskstub_create_parent(tf_task_t* task, uv_file file);
|
||||
void tf_taskstub_destroy(tf_taskstub_t* stub);
|
||||
void tf_taskstub_on_error(tf_taskstub_t* stub, JSValue error);
|
Reference in New Issue
Block a user