--- np2/win9x/commng.cpp 2003/10/16 17:58:44 1.1.1.1 +++ np2/win9x/commng.cpp 2005/02/07 14:46:14 1.5 @@ -1,31 +1,32 @@ #include "compiler.h" #include "np2.h" #include "commng.h" +#include "cmjasts.h" // ---- non connect -UINT commng_ncread(COMMNG self, BYTE *data) { +static UINT ncread(COMMNG self, UINT8 *data) { (void)self; (void)data; return(0); } -UINT commng_ncwrite(COMMNG self, BYTE data) { +static UINT ncwrite(COMMNG self, UINT8 data) { (void)self; (void)data; return(0); } -BYTE commng_ncgetstat(COMMNG self) { +static UINT8 ncgetstat(COMMNG self) { (void)self; return(0xf0); } -UINT commng_ncmsg(COMMNG self, UINT msg, long param) { +static long ncmsg(COMMNG self, UINT msg, long param) { (void)self; (void)msg; @@ -37,9 +38,7 @@ static void ncrelease(COMMNG self) { } static const _COMMNG com_nc = { - COMCONNECT_OFF, - commng_ncread, commng_ncwrite, commng_ncgetstat, commng_ncmsg, - ncrelease}; + COMCONNECT_OFF, ncread, ncwrite, ncgetstat, ncmsg, ncrelease}; // ---- @@ -71,6 +70,9 @@ COMMNG commng_create(UINT device) { case COMCREATE_PRINTER: cfg = NULL; + if (np2oscfg.jastsnd) { + ret = cmjasts_create(); + } break; case COMCREATE_MPU98II: