--- np2/macosx/commng.h 2003/10/16 17:59:37 1.1 +++ np2/macosx/commng.h 2003/10/25 09:08:24 1.2 @@ -18,6 +18,8 @@ enum { enum { COMMSG_MIDIRESET = 0, + COMMSG_SETFLAG, + COMMSG_GETFLAG, COMMSG_USER }; @@ -30,10 +32,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 +55,8 @@ void commng_destroy(COMMNG hdl); } #endif + +// ---- + +void commng_initialize(void); +