grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / unlocklayerrom.c
blobd4512613a0c3729d6171f289b890b22a59e9646f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function UnlockLayerRom()
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include <graphics/layers.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(void, UnlockLayerRom,
20 /* SYNOPSIS */
21 AROS_LHA(struct Layer *, l, A5),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 73, Graphics)
26 /* FUNCTION
27 Unlocks a previously locked layer for access by other applications
28 or intuition itself.
29 If a task has locked a layer multiple times it must unlock it
30 as many times as well as locks nest.
31 This functions does the same as layers/UnlockLayerRom()
33 INPUTS
34 l - pointer to layer structure
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
43 Does not save all registers.
45 SEE ALSO
46 LockLayerRom(), hyperlayers.library/LockLayer()
47 hyperlayers.library/UnLockLayer()
49 INTERNALS
51 HISTORY
53 *****************************************************************************/
55 AROS_LIBFUNC_INIT
57 ReleaseSemaphore(&l->Lock);
59 AROS_LIBFUNC_EXIT
60 } /* UnlockLayerRom */