revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / reqtools / rtunlockwindow.c
blob620c4ff65a638631aee04e4a7be49cd096f102db
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/reqtools.h>
12 #include <exec/libraries.h>
13 #include <exec/memory.h>
14 #include <aros/libcall.h>
15 #include "general.h"
16 #include "reqtools_intern.h"
17 #include "rtfuncs.h"
19 /*****************************************************************************
21 NAME */
23 AROS_LH2(VOID, rtUnlockWindow,
25 /* SYNOPSIS */
27 AROS_LHA(struct Window *, window , A0),
28 AROS_LHA(APTR , windowlock , A1),
30 /* LOCATION */
32 struct ReqToolsBase *, ReqToolsBase, 27, ReqTools)
34 /* FUNCTION
35 Unlock a window previously locked with rtLockWindow(). The window
36 will once again accept user input and will get its original mouse
37 pointer back (default or custom).
39 Under Kickstart V39 or higher the original window pointer will not
40 be restored if it was set using SetWindowPointer(). You will have to
41 restore the pointer yourself in this case.
43 INPUTS
44 window - pointer to the window to be unlocked.
45 windowlock - the windowlock pointer returned by rtLockWindow(), may
46 be NULL.
48 RESULT
49 none
51 NOTES
52 The mouse pointer has to be set back manually for now.
54 EXAMPLE
56 BUGS
57 none known
59 SEE ALSO
60 rtLockWindow()
62 INTERNALS
63 Needs semaphores to avoid race condition problems for multithreaded
64 applications.
66 HISTORY
68 ******************************************************************************/
70 AROS_LIBFUNC_INIT
72 RTFuncs_rtUnlockWindow(window, windowlock);
74 AROS_LIBFUNC_EXIT
76 } /* rtUnlockWindow */