added the halting event callback

This commit is contained in:
hyunghwan.chung
2019-09-02 16:23:03 +00:00
parent df01b982cb
commit d9df6694cf
4 changed files with 37 additions and 4 deletions

View File

@ -1255,13 +1255,14 @@ typedef struct moo_vmprim_t moo_vmprim_t;
/* =========================================================================
* CALLBACK MANIPULATION
* ========================================================================= */
typedef void (*moo_cbimpl_t) (moo_t* moo);
typedef void (*moo_evtcb_impl_t) (moo_t* moo);
typedef struct moo_evtcb_t moo_evtcb_t;
struct moo_evtcb_t
{
moo_cbimpl_t gc;
moo_cbimpl_t fini;
moo_evtcb_impl_t gc;
moo_evtcb_impl_t halting;
moo_evtcb_impl_t fini;
/* private below */
moo_evtcb_t* prev;