Diff for /np2/win9xc/commng.cpp between versions 1.1 and 1.5

version 1.1, 2003/10/16 17:59:19 version 1.5, 2005/02/07 14:46:15
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #include        "np2.h"
 #include        "commng.h"  #include        "commng.h"
 #include        "cmmidi.h"  #include        "cmver.h"
   #include        "cmjasts.h"
   
   
 // ---- non connect  // ---- non connect
   
 UINT commng_ncread(COMMNG self, BYTE *data) {  static UINT ncread(COMMNG self, UINT8 *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, UINT8 data) {
   
         (void)self;          (void)self;
         (void)data;          (void)data;
         return(0);          return(0);
 }  }
   
 BYTE commng_ncgetstat(COMMNG self) {  static UINT8 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 39  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};  
   
   
 // ----  // ----
   
 void commng_initialize(void) {  void commng_initialize(void) {
   
           cmvermouth_initialize();
 }  }
   
 COMMNG commng_create(UINT device) {  COMMNG commng_create(UINT device) {
Line 53  COMMNG commng_create(UINT device) { Line 55  COMMNG commng_create(UINT device) {
   
         ret = NULL;          ret = NULL;
         if (device == COMCREATE_MPU98II) {          if (device == COMCREATE_MPU98II) {
                 ret = cmmidi_create();                  ret = cmvermouth_create();
           }
           else if (device == COMCREATE_PRINTER) {
                   if (np2oscfg.jastsnd) {
                           ret = cmjasts_create();
                   }
         }          }
         if (ret == NULL) {          if (ret == NULL) {
                 ret = (COMMNG)&com_nc;                  ret = (COMMNG)&com_nc;

Removed from v.1.1  
changed lines
  Added in v.1.5


RetroPC.NET-CVS <cvs@retropc.net>