2 Copyright © 1995-2004, 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 *****************************************************************************/
50 AROS_LIBBASE_EXT_DECL(struct Library
*,IFFParseBase
)
52 DEBUG_SETLOCALEITEMPURGE(dprintf("SetLocalItemPurge: localItem %p purgeHook %p\n", localItem
, purgeHook
));
56 /* Self - explaining */
57 GetIntLCI(localItem
)->lci_PurgeHook
= purgeHook
;
59 DEBUG_SETLOCALEITEMPURGE(dprintf("SetLocalItemPurge: done\n"));
62 } /* SetLocalItemPurge */