Detabbed
[AROS.git] / rom / dos / freedeviceproc.c
blobc3cb521e9d6e7ddcfbdfa40364a3e0c81e50d7ad
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: FreeDeviceProc() - Clean up after calls to GetDeviceProc()
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(void, FreeDeviceProc,
19 /* SYNOPSIS */
20 AROS_LHA(struct DevProc *, dp, D1),
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 108, Dos)
25 /* FUNCTION
26 FreeDeviceProc() will clean up after a call to GetDeviceProc().
28 INPUTS
29 dp - DevProc structure as returned by GetDeviceProc().
31 RESULT
32 Some memory and other resources returned to the system.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 GetDeviceProc()
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 if( dp )
51 if( dp->dvp_Flags & DVPF_UNLOCK )
52 UnLock( dp->dvp_Lock );
53 FreeMem( dp, sizeof(struct DevProc) );
56 AROS_LIBFUNC_EXIT
57 } /* FreeDeviceProc */