forked from cory/tildefriends
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user