Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit ac6898b0 authored by rswindell's avatar rswindell

Added js_CreateFileClass().

parent 7c1fb949
......@@ -3528,6 +3528,9 @@ static void ctrl_thread(void* arg)
if(js_CreateUserClass(js_cx, js_glob, &scfg)==NULL)
lprintf("%04d !JavaScript ERROR creating user class",sock);
if(js_CreateFileClass(js_cx, js_glob)==NULL)
lprintf("%04d !JavaScript ERROR creating file class",sock);
if(js_CreateUserObject(js_cx, js_glob, &scfg, "user", user.number)==NULL)
lprintf("%04d !JavaScript ERROR creating user object",sock);
......@@ -332,6 +332,10 @@ bool sbbs_t::js_initcx()
if(js_CreateSocketClass(js_cx, js_glob)==NULL)
/* File Class */
if(js_CreateFileClass(js_cx, js_glob)==NULL)
/* Server Object */
if((server=JS_DefineObject(js_cx, js_glob, "server", &js_server_class
......@@ -810,6 +810,9 @@ extern "C" {
DLLEXPORT JSObject* DLLCALL js_CreateSocketObject(JSContext* cx, JSObject* parent
,char *name, SOCKET sock);
/* js_file.c */
DLLEXPORT JSObject* DLLCALL js_CreateFileClass(JSContext* cx, JSObject* parent);
/* js_console.cpp */
JSObject* js_CreateConsoleObject(JSContext* cx, JSObject* parent);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment