--- np2/x11/commng.h 2011/01/15 18:43:13 1.3 +++ np2/x11/commng.h 2011/01/15 19:16:58 1.4 @@ -3,6 +3,8 @@ // ---- com manager interface +G_BEGIN_DECLS + enum { COMCREATE_SERIAL = 0, COMCREATE_PC9861K1, @@ -46,17 +48,9 @@ typedef struct { } _COMFLAG, *COMFLAG; -#ifdef __cplusplus -extern "C" { -#endif - COMMNG commng_create(UINT device); void commng_destroy(COMMNG hdl); -#ifdef __cplusplus -} -#endif - // ---- com manager for unix @@ -84,6 +78,8 @@ enum { void commng_initialize(void); +G_END_DECLS + #include "cmmidi.h" #include "cmserial.h" #include "cmpara.h"