From 4739966e14ca2df24d4f44fb814b6275b9bf2a3c Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 24 Feb 2008 16:03:58 +0000 Subject: larger restructure to improve security --- src/engine/e_if_other.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/engine/e_if_other.h') 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 -- cgit 1.4.1