summaryrefslogtreecommitdiff
path: root/inc/slices_evt.h
blob: d5772b352e57959c0bb250d717174de24730090b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
	void (*eventListener)(/*sliceEvtKind_t evtKind,*/ struct _slices_evt_t *slicesEvt, slice_t *slice);
	pthread_mutex_t eventListenerMutex;
} slices_evt_t;

int sliceEvtSplit(slices_evt_t *slicesEvt, slice_t *initialSlice, address_t splitAt, sliceStatus_t statusBefore, sliceStatus_t statusAt, sliceStatus_t statusAfter);

//void sliceEvtPutEvent(slices_evt_t *slicesEvt, slice_t *modifiedSlice);

#endif /*SLICES_EVT_H */