diff options
Diffstat (limited to 'inc/slices_evt.h')
-rw-r--r-- | inc/slices_evt.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/slices_evt.h b/inc/slices_evt.h new file mode 100644 index 0000000..e7d44fe --- /dev/null +++ b/inc/slices_evt.h @@ -0,0 +1,17 @@ +#ifndef SLICES_EVT_H +#define SLICES_EVT_H + +#include "slices.h" + +//typedef enum { EV_BOUNDARY, EV_TYPE } sliceEvtKind_t; + +typedef struct _slices_evt_t { + slices_t *data; + pthread_mutex_t mutex; + void (*eventListener)(/*sliceEvtKind_t evtKind,*/ struct _slices_evt_t *slicesEvt, slice_t *slice); +} slices_evt_t; + +int sliceSplitEvt(slices_evt_t *slicesEvt, slice_t *initialSlice, address_t splitAt, sliceStatus_t statusBefore, sliceStatus_t statusAt, sliceStatus_t statusAfter); + +#endif /*SLICES_EVT_H */ + |