diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-24 16:03:58 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-24 16:03:58 +0000 |
| commit | 4739966e14ca2df24d4f44fb814b6275b9bf2a3c (patch) | |
| tree | 2398dee3380dfa48582a71a4f2d4278448fa6cb8 /src/engine/e_if_other.h | |
| parent | 1ea859c431b33a384727c0016917dde15bceeff3 (diff) | |
| download | zcatch-4739966e14ca2df24d4f44fb814b6275b9bf2a3c.tar.gz zcatch-4739966e14ca2df24d4f44fb814b6275b9bf2a3c.zip | |
larger restructure to improve security
Diffstat (limited to 'src/engine/e_if_other.h')
| -rw-r--r-- | src/engine/e_if_other.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/engine/e_if_other.h b/src/engine/e_if_other.h index 931df64d..b3a61e7f 100644 --- a/src/engine/e_if_other.h +++ b/src/engine/e_if_other.h @@ -34,6 +34,7 @@ typedef struct { int type; int id; + int datasize; } SNAP_ITEM; /* @@ -234,7 +235,7 @@ int snap_num_items(int snapid); Returns: Returns a pointer to the item if it exists, otherwise NULL. */ -const void *snap_get_item(int snapid, int index, SNAP_ITEM *item); +void *snap_get_item(int snapid, int index, SNAP_ITEM *item); /* Function: snap_find_item @@ -250,7 +251,19 @@ const void *snap_get_item(int snapid, int index, SNAP_ITEM *item); Returns: Returns a pointer to the item if it exists, otherwise NULL. */ -const void *snap_find_item(int snapid, int type, int id); +void *snap_find_item(int snapid, int type, int id); + +/* + Function: snap_invalidate_item + Marks an item as invalid byt setting type and id to 0xffffffff. + + Arguments: + snapid - Snapshot ID to the data to fetch. + * SNAP_PREV for previous snapshot. + * SNAP_CUR for current snapshot. + index - Index of the item. +*/ +void snap_invalidate_item(int snapid, int index); /* Function: snap_input |