grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hyperlayers / locklayers.c
blobf97d80db7433a16ec04a15b2672fe64239227a55
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/libcall.h>
9 #include <graphics/layers.h>
10 #include <graphics/clip.h>
11 #include <proto/exec.h>
13 #define DEBUG 0
14 #include <aros/debug.h>
15 #undef kprintf
17 /*****************************************************************************
19 NAME */
20 #include <proto/layers.h>
21 #include "layers_intern.h"
22 #include "basicfuncs.h"
24 AROS_LH1(void, LockLayers,
26 /* SYNOPSIS */
27 AROS_LHA(struct Layer_Info *, li, A0),
29 /* LOCATION */
30 struct LayersBase *, LayersBase, 18, Layers)
32 /* FUNCTION
34 First locks the Layer_Info then all the layers that are
35 found in the list of layers.
37 INPUTS
38 li - pointer to a Layer_Info structure
40 RESULT
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 HISTORY
53 27-11-96 digulla automatically created from
54 layers_lib.fd and clib/layers_protos.h
56 *****************************************************************************/
58 AROS_LIBFUNC_INIT
60 struct Layer * l;
62 D(bug("LockLayers(li @ $%lx)\n", li));
64 LockLayerInfo(li);
66 l = li->top_layer;
68 while (NULL != l)
70 LockLayer(0, l);
71 l = l->back;
75 AROS_LIBFUNC_EXIT
76 } /* LockLayers */