alsa.audio: disable building of alsa-bridge linklib until complete driver is ready
[AROS.git] / compiler / alib / deleteextio.c
blob2dd3e390d43faf81ccdde392a96fa3103a5e8b78
1 /*
2 Copyright © 1995-2014, 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 return value of CreateExtIO(). May be NULL.
28 RESULT
29 None.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 CreateStdIO(), CreateExtIO(), DeleteStdIO()
40 INTERNALS
42 ******************************************************************************/
44 if (ioreq != NULL)
46 /* Erase some fields to enforce crashes */
47 ioreq->io_Message.mn_Node.ln_Type = -1L;
49 ioreq->io_Device = (struct Device *)-1L;
50 ioreq->io_Unit = (struct Unit *)-1L;
52 /* Free the memory */
53 FreeMem(ioreq,ioreq->io_Message.mn_Length);