2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH2(void, SetLocalItemPurge
,
16 AROS_LHA(struct LocalContextItem
*, localItem
, A0
),
17 AROS_LHA(struct Hook
*, purgeHook
, A1
),
20 struct Library
*, IFFParseBase
, 33, IFFParse
)
23 Inserts a custom purge hook for the given local context item.
24 The purge hook will be freed when the system wants to delete a local
28 localItem - pointer to a local context item.
29 purgeHook - pointer to a hook sructure initialized with the purge function.
34 The purgehook must call FreeLocalItem() on the local context item after
35 doing its own resource freeing.
43 AllocLocalItem(), FreeLocalItem()
47 *****************************************************************************/
51 DEBUG_SETLOCALEITEMPURGE(dprintf("SetLocalItemPurge: localItem %p purgeHook %p\n", localItem
, purgeHook
));
55 /* Self - explaining */
56 GetIntLCI(localItem
)->lci_PurgeHook
= purgeHook
;
58 DEBUG_SETLOCALEITEMPURGE(dprintf("SetLocalItemPurge: done\n"));
61 } /* SetLocalItemPurge */