r4722@vps: verhaegs | 2007-05-06 13:11:19 -0400
[cake.git] / workbench / libs / icon / getdefdiskobject.c
blob8c42ec5636f440fdb250bb838aceb1f40333b681
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "icon_intern.h"
8 /*********************************************************
10 NAME */
11 #include <proto/icon.h>
13 AROS_LH1(struct DiskObject *, GetDefDiskObject,
15 /* SYNOPSIS */
16 AROS_LHA(LONG, type, D0),
18 /* LOCATION */
19 struct Library *, IconBase, 20, Icon)
21 /* FUNCTION
22 Gets the default icon for the supplied type of icon.
24 INPUTS
25 type - type of icon to get default diskobject for.
28 RESULT
29 DiskObject structure or NULL if an error occured. The error may
30 be obtained by IoErr().
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 PutDefDiskObject(), GetDiskObjectNew()
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 return GetIconTags(NULL, ICONGETA_GetDefaultType, type, TAG_DONE);
49 AROS_LIBFUNC_EXIT
50 } /* GetDefDiskObject() */