2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH1(void, CloseClipboard
,
16 AROS_LHA(struct ClipboardHandle
*, clipHandle
, A0
),
19 struct Library
*, IFFParseBase
, 42, IFFParse
)
22 Closes the clipboard.device and frees the ClipboardHandle
25 clip - pointer to a ClipboardHandle struct created with OpenClipboard.
37 OpenClipboard(), InitIFFAsClip()
41 *****************************************************************************/
45 if (clipHandle
!= NULL
)
47 /* Delete the messageports */
49 ClosePort (&(clipHandle
->cbh_CBport
), IPB(IFFParseBase
));
50 ClosePort (&(clipHandle
->cbh_SatisfyPort
), IPB(IFFParseBase
));
52 CloseDevice((struct IORequest
*)&(clipHandle
->cbh_Req
));
55 Free the IO request is just a question of freiing the memory
56 allocated for it. Since the ioClipReq structure resides inside
57 the clipboardhandle, (it's all just one big portion of memory),
58 we just free the clipboardhandle.
60 FreeMem(clipHandle
, sizeof (struct ClipboardHandle
));
64 } /* CloseClipboard */