--- np2/win9x/commng.cpp 2003/10/16 17:58:44 1.1.1.1 +++ np2/win9x/commng.cpp 2003/12/24 16:11:40 1.3 @@ -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, BYTE *data) { (void)self; (void)data; return(0); } -UINT commng_ncwrite(COMMNG self, BYTE data) { +static UINT ncwrite(COMMNG self, BYTE data) { (void)self; (void)data; return(0); } -BYTE commng_ncgetstat(COMMNG self) { +static BYTE 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}; // ---- @@ -70,7 +69,15 @@ COMMNG commng_create(UINT device) { break; case COMCREATE_PRINTER: +#if 1 // test + ret = cmjasts_create(); + if (ret) { + return(ret); + } + return((COMMNG)&com_nc); +#else cfg = NULL; +#endif break; case COMCREATE_MPU98II: