summaryrefslogtreecommitdiff
path: root/inc/slices_evt.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-10-09 12:33:48 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-10-09 12:33:48 +0000
commit0f2c685db3d3790ce9bdc9598df8dae7d6b67eae (patch)
treea2c2a7f8941e87368ee46163e028c553d1b6bcdf /inc/slices_evt.h
download2011-ddhardrescue-0f2c685db3d3790ce9bdc9598df8dae7d6b67eae.tar.gz
2011-ddhardrescue-0f2c685db3d3790ce9bdc9598df8dae7d6b67eae.tar.bz2
2011-ddhardrescue-0f2c685db3d3790ce9bdc9598df8dae7d6b67eae.zip
On range tout le code actuel du trunk dans une branche nommée "0.x" et on crée une branche 1.x qui contiendra une nouvelle mouture (re-conception, méta info de packaging...).origin/0.x
git-svn-id: file:///var/svn/2011-ddhardrescue/branches/0.x@29 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'inc/slices_evt.h')
-rw-r--r--inc/slices_evt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/slices_evt.h b/inc/slices_evt.h
new file mode 100644
index 0000000..d5772b3
--- /dev/null
+++ b/inc/slices_evt.h
@@ -0,0 +1,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 */
+