--- Coro/Coro/CoroAPI.h 2009/07/01 11:33:25 1.28 +++ Coro/Coro/CoroAPI.h 2011/05/06 21:15:17 1.29 @@ -28,7 +28,8 @@ { void (*prepare) (pTHX_ struct coro_transfer_args *ta); /* 0 means not yet initialised */ int (*check) (pTHX_ struct CoroSLF *frame); - void *data; /* for use by prepare/check */ + void *data; /* for use by prepare/check/destroy */ + void (*destroy) (pTHX_ struct coro *coro); }; /* needs to fill in the *frame */ @@ -40,8 +41,8 @@ /* private */ I32 ver; I32 rev; -#define CORO_API_VERSION 7 -#define CORO_API_REVISION 0 +#define CORO_API_VERSION 7 /* reorder CoroSLF on change */ +#define CORO_API_REVISION 1 /* Coro */ int nready;