Tabs to spaces, more consistent formatting.
[AROS.git] / workbench / libs / asl / activateaslrequest.c
blob8422ad9787b1936efcd5932b0aebf0ef1c8ab240
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
10 #include <proto/exec.h>
11 #include <proto/intuition.h>
12 #include "asl_intern.h"
14 /*****************************************************************************
16 NAME */
18 AROS_LH1(void, ActivateAslRequest,
20 /* SYNOPSIS */
21 AROS_LHA(APTR, requester, A0),
23 /* LOCATION */
24 struct Library *, AslBase, 14, Asl)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 HISTORY
43 27-11-96 digulla automatically created from
44 asl_lib.fd and clib/asl_protos.h
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct ReqNode *reqnode;
52 if (!requester) return;
54 ObtainSemaphore( &(ASLB(AslBase)->ReqListSem));
56 reqnode = FindReqNode(requester, ASLB(AslBase));
57 if (reqnode)
59 if (reqnode->rn_ReqWindow)
61 ActivateWindow(reqnode->rn_ReqWindow);
63 /* Not sure if we need to wait for it to actually become active here before returning or not?! */
65 } /* if (reqnode->rn_ReqWindow) */
67 } /* if (reqnode) */
69 ReleaseSemaphore(&(ASLB(AslBase)->ReqListSem));
71 AROS_LIBFUNC_EXIT
73 } /* ActivateAslRequest */