… | |
… | |
27 | struct CoroSLF |
27 | struct CoroSLF |
28 | { |
28 | { |
29 | void (*prepare) (pTHX_ struct coro_transfer_args *ta); /* 0 means not yet initialised */ |
29 | void (*prepare) (pTHX_ struct coro_transfer_args *ta); /* 0 means not yet initialised */ |
30 | int (*check) (pTHX_ struct CoroSLF *frame); |
30 | int (*check) (pTHX_ struct CoroSLF *frame); |
31 | void *data; /* for use by prepare/check/destroy */ |
31 | void *data; /* for use by prepare/check/destroy */ |
32 | void (*destroy) (pTHX_ struct coro *coro); |
32 | void (*destroy) (pTHX_ struct CoroSLF *frame); |
33 | }; |
33 | }; |
34 | |
34 | |
35 | /* needs to fill in the *frame */ |
35 | /* needs to fill in the *frame */ |
36 | typedef void (*coro_slf_cb) (pTHX_ struct CoroSLF *frame, CV *cv, SV **arg, int items); |
36 | typedef void (*coro_slf_cb) (pTHX_ struct CoroSLF *frame, CV *cv, SV **arg, int items); |
37 | |
37 | |