muimaster.library: support Listview_List in List
[AROS.git] / rom / dos / freedeviceproc.c
blob23e7bf8f30b3a51493ab0435a092c0754f1ff6fd
1 /*
2 Copyright © 1995-2013, 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(), or NULL.
31 RESULT
32 None.
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 */