home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / alib / deleteextio.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.0 KB  |  56 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: deleteextio.c,v 1.2 1997/01/27 00:16:35 ldp Exp $
  4.  
  5.     Desc: Free a structure created by CreateExtIO()
  6.     Lang: english
  7. */
  8. #include <proto/exec.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <exec/io.h>
  14. #include <proto/alib.h>
  15.  
  16.     void DeleteExtIO (
  17.  
  18. /*  SYNOPSIS */
  19.     struct IORequest * ioreq)
  20.  
  21. /*  FUNCTION
  22.     Free a structure created by CreateExtIO().
  23.  
  24.     INPUTS
  25.     ioreq - The returnvalue of CreateExtIO(). Must be
  26.         non-NULL.
  27.  
  28.     RESULT
  29.     None.
  30.  
  31.     NOTES
  32.  
  33.     EXAMPLE
  34.  
  35.     BUGS
  36.  
  37.     SEE ALSO
  38.     CreateStdIO(), CreateExt()
  39.  
  40.     INTERNALS
  41.  
  42.     HISTORY
  43.  
  44. ******************************************************************************/
  45. {
  46.     /* Erase some fields to enforce crashes */
  47.     ioreq->io_Message.mn_Node.ln_Type = -1L;
  48.  
  49.     ioreq->io_Device = (struct Device *)-1L;
  50.     ioreq->io_Unit   = (struct Unit *)-1L;
  51.  
  52.     /* Free the memory */
  53.     FreeMem(ioreq,ioreq->io_Message.mn_Length);
  54. } /* DeleteExtIO */
  55.  
  56.