Commit bba65337 authored by deuce's avatar deuce
Browse files

Add COM object for access to serial ports (not well tested).

parent 648dcbe7
......@@ -154,6 +154,9 @@ else
endif
CFLAGS += $(UIFC-MT_CFLAGS) $(XPDEV-MT_CFLAGS) $(SMBLIB_CFLAGS) $(CIOLIB-MT_CFLAGS)
CFLAGS += -I../comio
vpath %.c ../comio
OBJS += $(MTOBJODIR)$(DIRSEP)comio_nix$(OFILE)
LDFLAGS += $(UIFC-MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(SMBLIB_LDFLAGS) $(CIOLIB-MT_LDFLAGS)
# Monolithic Synchronet executable Build Rule
......
This diff is collapsed.
......@@ -3625,6 +3625,10 @@ JSObject* DLLCALL js_CreateCommonObjects(JSContext* js_cx
if(js_CreateUserClass(js_cx, js_glob, cfg)==NULL)
return(NULL);
/* COM Class */
if(js_CreateCOMClass(js_cx, js_glob)==NULL)
return(NULL);
/* Area Objects */
if(!js_CreateUserObjects(js_cx, js_glob, cfg, /* user: */NULL, client, /* html_index_fname: */NULL, /* subscan: */NULL))
return(NULL);
......
......@@ -15,6 +15,7 @@ OBJS = $(MTOBJODIR)$(DIRSEP)ansiterm$(OFILE) \
$(MTOBJODIR)$(DIRSEP)bulkmail$(OFILE)\
$(MTOBJODIR)$(DIRSEP)chat$(OFILE)\
$(MTOBJODIR)$(DIRSEP)chk_ar$(OFILE)\
$(MTOBJODIR)$(DIRSEP)comio$(OFILE)\
$(MTOBJODIR)$(DIRSEP)con_hi$(OFILE)\
$(MTOBJODIR)$(DIRSEP)con_out$(OFILE)\
$(MTOBJODIR)$(DIRSEP)dat_rec$(OFILE)\
......@@ -42,6 +43,7 @@ OBJS = $(MTOBJODIR)$(DIRSEP)ansiterm$(OFILE) \
$(MTOBJODIR)$(DIRSEP)ident$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_bbs$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_client$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_com$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_console$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_file$(OFILE)\
$(MTOBJODIR)$(DIRSEP)js_file_area$(OFILE)\
......
......@@ -1095,6 +1095,10 @@ extern "C" {
/* js_conio.c */
JSObject* js_CreateConioObject(JSContext* cx, JSObject* parent);
/* js_com.c */
DLLEXPORT JSObject* DLLCALL js_CreateCOMClass(JSContext* cx, JSObject* parent);
DLLEXPORT JSObject* DLLCALL js_CreateCOMObject(JSContext* cx, JSObject* parent ,char *name, SOCKET sock);
#endif
/* str_util.c */
......
......@@ -851,6 +851,10 @@ js_initcx(JSRuntime* js_runtime, SOCKET sock, service_client_t* service_client,
if(js_CreateQueueClass(js_cx, js_glob)==NULL)
break;
/* COM Class */
if(js_CreateCOMClass(js_cx, js_glob)==NULL)
break;
/* user-specific objects */
if(!js_CreateUserObjects(js_cx, js_glob, &scfg, /*user: */NULL, service_client->client, NULL, service_client->subscan))
break;
......
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