2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <utility/hooks.h>
10 #include <proto/graphics.h>
13 #include <aros/debug.h>
16 /*****************************************************************************
19 #include <proto/layers.h>
20 #include "layers_intern.h"
22 AROS_LH2(struct Hook
*, InstallLayerHook
,
25 AROS_LHA(struct Layer
*, layer
, A0
),
26 AROS_LHA(struct Hook
*, hook
, A1
),
29 struct LayersBase
*, LayersBase
, 33, Layers
)
32 Safely install a new backfill hook. Return the old hook.
33 If hook is NULL, then the default backfill hook will be installed.
36 layer - layer that will get the new backfill hook
37 hook - pointer to backfill hook to be installed
52 27-11-96 digulla automatically created from
53 layers_lib.fd and clib/layers_protos.h
55 *****************************************************************************/
61 D(bug("InstallLayerHook(layer @ $%lx, hook @ $%lx)\n", layer
, hook
));
68 OldHook
= layer
->BackFill
;
70 layer
->BackFill
= hook
;
77 } /* InstallLayerHook */