Minor fixes to comments.
[AROS.git] / rom / intuition / endscreennotify.c
blobce7015a682c6c15bdf6f815f5ea2f12a477acd87
1 /*
2 Copyright 1995-2011, The AROS Development Team. All rights reserved.
3 Copyright 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
6 Remove a Intuition Notification.
7 */
9 #include <intuition/intuition.h>
11 #include "intuition_intern.h"
13 /*****************************************************************************
15 NAME */
17 #include <proto/exec.h>
18 #include <proto/intuition.h>
19 #include <proto/utility.h>
21 AROS_LH1(BOOL, EndScreenNotify,
23 /* SYNOPSIS */
24 AROS_LHA(APTR, notify, A0),
26 /* LOCATION */
27 struct IntuitionBase *, IntuitionBase, 155, Intuition)
29 /* FUNCTION
30 Remove a Screen Notifications from Intuition.
32 INPUTS
33 notify - notification returned from StartScreenNotifyTagList()
35 RESULT
36 BOOL - if false Notification is in use and cannot be removed, try later
38 NOTES
39 This function is compatible with AmigaOS v4.
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 StartScreenNotifyTagList()
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 BOOL back;
58 if (notify == 0) return TRUE;
60 if ((back = AttemptSemaphore(&GetPrivIBase(IntuitionBase)->ScreenNotificationListLock)))
62 if (((struct IntScreenNotify*) notify)->pubname) FreeVec(((struct IntScreenNotify*) notify)->pubname);
63 Remove((struct Node *) notify);
64 FreeVec((void *)notify);
65 ReleaseSemaphore(&GetPrivIBase(IntuitionBase)->ScreenNotificationListLock);
68 ReturnPtr ("EndScreenNotify", BOOL, back);
70 AROS_LIBFUNC_EXIT
71 } /* EndScreenNotify */