add resurrect for alive checker

This commit is contained in:
2023-08-31 20:01:39 +02:00
parent b95b6619e3
commit 7aab0ef049
2 changed files with 16 additions and 3 deletions

View File

@@ -25,7 +25,8 @@ typedef enum {
evALborn,
evALready,
evALpoll,
evALstart
evALstart,
evALresurrect
} ALIVE_EVENTS;
typedef void (*ALIVE_CALLBACK_FUNCTION)(void*);
@@ -162,6 +163,14 @@ void ALIVE_emitPoll(ALIVE* me, uint16_t t, int64_t data);
*/
void ALIVE_emitStart(ALIVE* me, uint16_t t, int64_t data);
/**
* Emit the resurrect event
* @param me the ALIVE itself
* @param t time to wait in ms before triggering event
* @param data data to put on the event for XF
*/
void ALIVE_emitResurrect(ALIVE* me, uint16_t t, int64_t data);
/***********
* SETTERS *