| version 1.1.1.1, 2003/10/16 17:59:37 | version 1.3, 2004/03/02 23:23:06 | 
| Line 18  enum { | Line 18  enum { | 
 |  |  | 
 | enum { | enum { | 
 | COMMSG_MIDIRESET                = 0, | COMMSG_MIDIRESET                = 0, | 
 |  | COMMSG_SETFLAG, | 
 |  | COMMSG_GETFLAG, | 
 | COMMSG_USER | COMMSG_USER | 
 | }; | }; | 
 |  |  | 
 |  | enum { | 
 |  | COMSIG_COM1                             = 0x314d4f43, | 
 |  | COMSIG_COM2                             = 0x324d4f43, | 
 |  | COMSIG_COM3                             = 0x334d4f43, | 
 |  | COMSIG_COM4                             = 0x344d4f43, | 
 |  | COMSIG_MIDI                             = 0x4944494d | 
 |  | }; | 
 |  |  | 
 |  | enum { | 
 |  | COMMSG_MIMPIDEFFILE             = COMMSG_USER, | 
 |  | COMMSG_MIMPIDEFEN | 
 |  | }; | 
 |  |  | 
 | struct _commng; | struct _commng; | 
 | typedef struct _commng  _COMMNG; | typedef struct _commng  _COMMNG; | 
 | typedef struct _commng  *COMMNG; | typedef struct _commng  *COMMNG; | 
| Line 30  struct _commng { | Line 45  struct _commng { | 
 | UINT    (*read)(COMMNG self, BYTE *data); | UINT    (*read)(COMMNG self, BYTE *data); | 
 | UINT    (*write)(COMMNG self, BYTE data); | UINT    (*write)(COMMNG self, BYTE data); | 
 | BYTE    (*getstat)(COMMNG self); | BYTE    (*getstat)(COMMNG self); | 
| UINT    (*msg)(COMMNG self, UINT msg, long param); | long    (*msg)(COMMNG self, UINT msg, long param); | 
 | void    (*release)(COMMNG self); | void    (*release)(COMMNG self); | 
 | }; | }; | 
 |  |  | 
 |  | typedef struct { | 
 |  | UINT32  size; | 
 |  | UINT32  sig; | 
 |  | UINT32  ver; | 
 |  | UINT32  param; | 
 |  | } _COMFLAG, *COMFLAG; | 
 |  |  | 
 |  |  | 
 | #ifdef __cplusplus | #ifdef __cplusplus | 
 | extern "C" { | extern "C" { | 
| Line 46  void commng_destroy(COMMNG hdl); | Line 68  void commng_destroy(COMMNG hdl); | 
 | } | } | 
 | #endif | #endif | 
 |  |  | 
 |  |  | 
 |  | // ---- | 
 |  |  | 
 |  | void commng_initialize(void); | 
 |  |  |