2 Copyright © 2009, The AROS Development Team. All rights reserved.
6 #include <libraries/muiscreen.h>
7 #include <proto/intuition.h>
8 #include <intuition/screens.h>
9 #include <proto/intuition.h>
10 #include <proto/exec.h>
11 #include <exec/lists.h>
14 #include <aros/debug.h>
16 #include "muiscreen_intern.h"
18 /*****************************************************************************
21 #include <proto/muiscreen.h>
23 AROS_LH1(BOOL
, MUIS_ClosePubScreen
,
26 AROS_LHA(char *, name
, A0
),
29 struct MUIScreenBase_intern
*, MUIScreenBase
, 0x48, MUIScreen
)
47 ******************************************************************************/
52 struct List
*pubscrlist
;
53 struct PubScreenNode
*pubscrnode
;
57 D(bug("MUIS_ClosePubScreen(%s)\n", name
));
59 pubscrlist
= LockPubScreenList();
60 ForeachNode(pubscrlist
, pubscrnode
)
62 if(strcmp(pubscrnode
->psn_Node
.ln_Name
, name
) == 0)
68 UnlockPubScreenList();
72 CloseScreen(pubscrnode
->psn_Screen
);
75 ForeachNode(&MUIScreenBase
->clients
, node
)
77 struct MUIS_InfoClient
*client
= (struct MUIS_InfoClient
*) node
;
78 Signal(client
->task
, client
->sigbit
);