summaryrefslogtreecommitdiff
path: root/inc/slices.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/slices.h')
-rwxr-xr-xinc/slices.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/slices.h b/inc/slices.h
index 1ed7775..4360d86 100755
--- a/inc/slices.h
+++ b/inc/slices.h
@@ -27,6 +27,7 @@ typedef struct {
} slices_t;
slice_t *sliceNew(address_t begin, address_t end, sliceStatus_t status, slice_t *next);
+void sliceDelete(slice_t *s);
// Return the numbers of slices after split (3 in the general case, 2 or 1 in particular cases. -1 is memory error)
int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, sliceStatus_t statusBefore, sliceStatus_t statusAt, sliceStatus_t statusAfter);
@@ -35,6 +36,7 @@ int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, slice
slices_t *slicesNewEmpty();
slices_t *slicesNewSingleton(address_t begin, address_t end, sliceStatus_t status);
+void slicesDelete(slices_t *slices);
void slicesAppend(slices_t *slices, slice_t *slice);