Sort of barely starting to call httpd callbacks with the new implementation.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4686 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-12-21 01:27:57 +00:00
parent f9940fc436
commit 6ecbfe3de6
4 changed files with 68 additions and 7 deletions

View File

@ -130,7 +130,8 @@ static void _socket_gc_mark(JSRuntime* runtime, JSValueConst value, JS_MarkFunc
JSValue tf_socket_register(JSContext* context)
{
JS_NewClassID(&_classId);
JSClassDef def = {
JSClassDef def =
{
.class_name = "Socket",
.finalizer = &_socket_finalizer,
.gc_mark = _socket_gc_mark,
@ -269,7 +270,7 @@ void _socket_close_internal(socket_t* socket)
}
}
void _socket_finalizer(JSRuntime *runtime, JSValue value)
void _socket_finalizer(JSRuntime* runtime, JSValue value)
{
socket_t* socket = JS_GetOpaque(value, _classId);
socket->_object = JS_UNDEFINED;