Include <X11/Xlib.h> even if USE_VIDMODE is
[tangerine.git] / rom / exec / deleteiorequest.c
blob442419f61481d130029c457bd0c1ae236fa8b5a1
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Free an I/O request.
6 Lang: english
7 */
8 #include "exec_intern.h"
9 #include <aros/libcall.h>
10 #include <exec/io.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(void, DeleteIORequest,
19 /* SYNOPSIS */
20 AROS_LHA(struct IORequest *, iorequest, A0),
22 /* LOCATION */
23 struct ExecBase *, SysBase, 110, Exec)
25 /* FUNCTION
26 Delete an I/O request created with CreateIORequest().
28 INPUTS
29 iorequest - Pointer to I/O request structure or NULL.
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 ******************************************************************************/
45 AROS_LIBFUNC_INIT
47 if(iorequest!=NULL)
48 /* Just free the memory */
49 FreeMem(iorequest,iorequest->io_Message.mn_Length);
50 AROS_LIBFUNC_EXIT
51 } /* DeleteIORequest() */