Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / icon / putdefdiskobject.c
blob9b6b5d23623da5aee2fb96e0d5176bd683431afa
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(BOOL, PutDefDiskObject,
15 /* SYNOPSIS */
16 AROS_LHA(struct DiskObject *, icon, A0),
18 /* LOCATION */
19 struct IconBase *, IconBase, 21, Icon)
21 /* FUNCTION
22 Puts a new default icon for a certain type.
24 INPUTS
25 diskObject - diskObject struct describing icon to put as new
26 default icon.
28 RESULT
29 TRUE if success, else FALSE. Error may be obtained via IoErr().
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 GetDefDiskObject(), PutDiskObject()
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 return PutIconTags
48 NULL, NULL,
49 ICONPUTA_PutDefaultType, icon->do_Type,
50 ICONPUTA_NotifyWorkbench, TRUE,
51 TAG_DONE
54 AROS_LIBFUNC_EXIT
55 } /* PutDefDiskObject() */