r4493@vps: verhaegs | 2007-04-19 14:44:00 -0400
[AROS.git] / rom / hyperlayers / locklayers.c
blob80e7962ff239ff85252c373bfb850c108306136b
1 /*
2 Copyright © 1995-2001, 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
59 AROS_LIBBASE_EXT_DECL(struct LayersBase *,LayersBase)
61 struct Layer * l;
63 D(bug("LockLayers(li @ $%lx)\n", li));
65 LockLayerInfo(li);
67 l = li->top_layer;
69 while (NULL != l)
71 LockLayer(NULL, l);
72 l = l->back;
76 AROS_LIBFUNC_EXIT
77 } /* LockLayers */