define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / graphics / unlocklayerrom.c
blob84e10eb0bbf48b10aa2a5f6dd4ec5ec8e6075585
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/layers.h>
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/graphics.h>
16 AROS_LH1(void, UnlockLayerRom,
18 /* SYNOPSIS */
19 AROS_LHA(struct Layer *, l, A5),
21 /* LOCATION */
22 struct GfxBase *, GfxBase, 73, Graphics)
24 /* FUNCTION
25 Unlocks a previously locked layer for access by other applications
26 or intuition itself.
27 If a task has locked a layer multiple times it must unlock it
28 as many times as well as locks nest.
29 This functions does the same as layers/UnlockLayerRom()
31 INPUTS
32 l - pointer to layer structure
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
41 Does not save all registers.
43 SEE ALSO
44 LockLayerRom(), hyperlayers.library/LockLayer()
45 hyperlayers.library/UnLockLayer()
47 INTERNALS
49 HISTORY
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 ReleaseSemaphore(&l->Lock);
57 AROS_LIBFUNC_EXIT
58 } /* UnlockLayerRom */