genmodule: Add <exec/devices.h> to the device proto includes
[AROS.git] / compiler / alib / deleteextio.c
blobbb299492a615a96552b57df2dfaed9ba245877ad
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Free a structure created by CreateExtIO()
6 Lang: english
7 */
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <exec/io.h>
15 #include <proto/alib.h>
17 void DeleteExtIO (
19 /* SYNOPSIS */
20 struct IORequest * ioreq)
22 /* FUNCTION
23 Free a structure created by CreateExtIO().
25 INPUTS
26 ioreq - The returnvalue of CreateExtIO(). Must be
27 non-NULL.
29 RESULT
30 None.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 CreateStdIO(), CreateExtIO()
41 INTERNALS
43 HISTORY
45 ******************************************************************************/
47 /* Erase some fields to enforce crashes */
48 ioreq->io_Message.mn_Node.ln_Type = -1L;
50 ioreq->io_Device = (struct Device *)-1L;
51 ioreq->io_Unit = (struct Unit *)-1L;
53 /* Free the memory */
54 FreeMem(ioreq,ioreq->io_Message.mn_Length);
55 } /* DeleteExtIO */