Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / dos / freedeviceproc.c
blobb8bd804565e07fd03a8247c53912384986e70a42
1 /*
2 Copyright © 1995-2001, 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
48 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
50 if( dp )
52 if( dp->dvp_Flags & DVPF_UNLOCK )
53 UnLock( dp->dvp_Lock );
54 FreeMem( dp, sizeof(struct DevProc) );
57 AROS_LIBFUNC_EXIT
58 } /* FreeDeviceProc */