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

Commit ce574f26 authored by rswindell's avatar rswindell

Prepended js_ to CreateSystem/UserObject function names.

Added js_CreateFileAreaObject function.
parent c0a90ae4
......@@ -772,12 +772,16 @@ extern "C" {
#ifdef JAVASCRIPT
/* sysobj.c */
DLLEXPORT JSObject* DLLCALL CreateSystemObject(scfg_t* cfg, JSContext* cx, JSObject* parent);
DLLEXPORT JSObject* DLLCALL js_CreateSystemObject(scfg_t* cfg, JSContext* cx, JSObject* parent);
/* userobj.c */
DLLEXPORT JSObject* DLLCALL CreateUserObject(scfg_t* cfg, JSContext* cx, JSObject* parent
DLLEXPORT JSObject* DLLCALL js_CreateUserObject(scfg_t* cfg, JSContext* cx, JSObject* parent
,char* name, user_t* user);
/* fileobj.c */
DLLEXPORT JSObject* DLLCALL js_CreateFileAreaObject(scfg_t* cfg, JSContext* cx, JSObject* parent
,user_t* user, char* html_index_file);
#endif
#ifdef SBBS /* These aren't exported */
......
......@@ -318,7 +318,7 @@ static JSClass js_sysstats_class = {
};
JSObject* DLLCALL CreateSystemObject(scfg_t* cfg, JSContext* cx, JSObject* parent)
JSObject* DLLCALL js_CreateSystemObject(scfg_t* cfg, JSContext* cx, JSObject* parent)
{
JSObject* sysobj;
JSObject* statsobj;
......
......@@ -436,7 +436,7 @@ static JSClass js_user_security_class = {
,JS_FinalizeStub /* finalize */
};
JSObject* DLLCALL CreateUserObject(scfg_t* cfg, JSContext* cx, JSObject* parent, char* name, user_t* user)
JSObject* DLLCALL js_CreateUserObject(scfg_t* cfg, JSContext* cx, JSObject* parent, char* name, user_t* user)
{
JSObject* userobj;
JSObject* statsobj;
......
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