2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Add a class to the list of puvlic classes
8 #include <exec/lists.h>
9 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <proto/oop.h>
17 AROS_LH1(VOID
, OOP_RemoveServer
,
20 AROS_LHA(STRPTR
, serverID
, A0
),
23 struct Library
*, OOPBase
, 13, OOP
)
26 Remove a pulic server object that has previously
27 been added to the public server list by AddServer().
30 serverID - ID of server object to remove.
36 Probably not a good API. Implemented
37 just to show how one can call methods
38 across process-borders.
45 OOP_AddServer(), OOP_FindServer()
50 29-10-95 digulla automatically created from
51 intuition_lib.fd and clib/intuition_protos.h
53 *****************************************************************************/
61 /* This is a public list that must be protected */
62 ObtainSemaphore( &GetOBase(OOPBase
)->ob_ServerListLock
);
64 /* Try to find the server */
65 sn
= FindName((struct List
*)&GetOBase(OOPBase
)->ob_ServerList
70 /* If found, remove the node */
72 /* Free the copied ID */
74 /* Free the servernode */
75 FreeMem(sn
, sizeof (struct ServerNode
));
78 ReleaseSemaphore( & GetOBase(OOPBase
)->ob_ServerListLock
);
83 } /* OOP_RemoveServer */