added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / rom / intuition / endscreennotify.c
blob14a6a1f1b5bba8e7260d9f36de31fce3d0faeaa6
1 /*
2 Copyright 1995-2007, 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(IPTR, notify, A0),
26 /* LOCATION */
27 struct IntuitionBase *, IntuitionBase, 162, Intuition)
29 /* FUNCTION
30 Remove a Screen Notifications from Intuitionn.
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
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 StartScreenNotifyTagList()
46 INTERNALS
48 HISTORY
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 BOOL back;
56 if (notify == NULL) return TRUE;
58 if (back = AttemptSemaphore(&GetPrivIBase(IntuitionBase)->ScreenNotificationListLock))
60 if (((struct IntScreenNotify*) notify)->pubname) FreeVec(((struct IntScreenNotify*) notify)->pubname);
61 Remove((struct Node *) notify);
62 FreeVec(notify);
63 ReleaseSemaphore(&GetPrivIBase(IntuitionBase)->ScreenNotificationListLock);
66 ReturnPtr ("EndScreenNotify", BOOL, back);
68 AROS_LIBFUNC_EXIT
69 } /* EndScreenNotify */