|
|
| version 1.1.1.1, 2003/10/16 17:58:44 | version 1.4, 2003/12/25 03:02:40 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "np2.h" | #include "np2.h" |
| #include "commng.h" | #include "commng.h" |
| #include "cmjasts.h" | |
| // ---- non connect | // ---- non connect |
| UINT commng_ncread(COMMNG self, BYTE *data) { | static UINT ncread(COMMNG self, BYTE *data) { |
| (void)self; | (void)self; |
| (void)data; | (void)data; |
| return(0); | return(0); |
| } | } |
| UINT commng_ncwrite(COMMNG self, BYTE data) { | static UINT ncwrite(COMMNG self, BYTE data) { |
| (void)self; | (void)self; |
| (void)data; | (void)data; |
| return(0); | return(0); |
| } | } |
| BYTE commng_ncgetstat(COMMNG self) { | static BYTE ncgetstat(COMMNG self) { |
| (void)self; | (void)self; |
| return(0xf0); | return(0xf0); |
| } | } |
| UINT commng_ncmsg(COMMNG self, UINT msg, long param) { | static long ncmsg(COMMNG self, UINT msg, long param) { |
| (void)self; | (void)self; |
| (void)msg; | (void)msg; |
| Line 37 static void ncrelease(COMMNG self) { | Line 38 static void ncrelease(COMMNG self) { |
| } | } |
| static const _COMMNG com_nc = { | static const _COMMNG com_nc = { |
| COMCONNECT_OFF, | COMCONNECT_OFF, ncread, ncwrite, ncgetstat, ncmsg, ncrelease}; |
| commng_ncread, commng_ncwrite, commng_ncgetstat, commng_ncmsg, | |
| ncrelease}; | |
| // ---- | // ---- |
| Line 71 COMMNG commng_create(UINT device) { | Line 70 COMMNG commng_create(UINT device) { |
| case COMCREATE_PRINTER: | case COMCREATE_PRINTER: |
| cfg = NULL; | cfg = NULL; |
| if (np2oscfg.jastsnd) { | |
| ret = cmjasts_create(); | |
| } | |
| break; | break; |
| case COMCREATE_MPU98II: | case COMCREATE_MPU98II: |