2 Copyright 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright 2001-2003, The MorphOS Development Team. All Rights Reserved.
6 Remove a Intuition Notification.
9 #include <intuition/intuition.h>
11 #include "intuition_intern.h"
13 /*****************************************************************************
17 #include <proto/exec.h>
18 #include <proto/intuition.h>
19 #include <proto/utility.h>
21 AROS_LH1(BOOL
, EndScreenNotify
,
24 AROS_LHA(IPTR
, notify
, A0
),
27 struct IntuitionBase
*, IntuitionBase
, 162, Intuition
)
30 Remove a Screen Notifications from Intuition.
33 notify - notification returned from StartScreenNotifyTagList()
36 BOOL - if false Notification is in use and cannot be removed, try later
45 StartScreenNotifyTagList()
51 *****************************************************************************/
57 if (notify
== 0) return TRUE
;
59 if ((back
= AttemptSemaphore(&GetPrivIBase(IntuitionBase
)->ScreenNotificationListLock
)))
61 if (((struct IntScreenNotify
*) notify
)->pubname
) FreeVec(((struct IntScreenNotify
*) notify
)->pubname
);
62 Remove((struct Node
*) notify
);
63 FreeVec((void *)notify
);
64 ReleaseSemaphore(&GetPrivIBase(IntuitionBase
)->ScreenNotificationListLock
);
67 ReturnPtr ("EndScreenNotify", BOOL
, back
);
70 } /* EndScreenNotify */