--- np2/macosx/commng.h 2003/10/16 17:59:37 1.1.1.1 +++ np2/macosx/commng.h 2004/03/02 23:23:06 1.3 @@ -18,9 +18,24 @@ enum { enum { COMMSG_MIDIRESET = 0, + COMMSG_SETFLAG, + COMMSG_GETFLAG, 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; typedef struct _commng _COMMNG; typedef struct _commng *COMMNG; @@ -30,10 +45,17 @@ struct _commng { UINT (*read)(COMMNG self, BYTE *data); UINT (*write)(COMMNG self, BYTE data); BYTE (*getstat)(COMMNG self); - UINT (*msg)(COMMNG self, UINT msg, long param); + long (*msg)(COMMNG self, UINT msg, long param); void (*release)(COMMNG self); }; +typedef struct { + UINT32 size; + UINT32 sig; + UINT32 ver; + UINT32 param; +} _COMFLAG, *COMFLAG; + #ifdef __cplusplus extern "C" { @@ -46,3 +68,8 @@ void commng_destroy(COMMNG hdl); } #endif + +// ---- + +void commng_initialize(void); +