Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / icon / getdiskobjectnew.c
blobf4aac2add2dfd0c59ba63ad651e4a03ac0b43a0e
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 *, GetDiskObjectNew,
15 /* SYNOPSIS */
16 AROS_LHA(CONST_STRPTR, name, A0),
18 /* LOCATION */
19 struct Library *, IconBase, 22, Icon)
21 /* FUNCTION
22 Tries to open the supplied info file via GetDiskObject(). If this
23 not succeeds it will try to read the default info file for
24 that type of file.
26 INPUTS
27 name - name of the file to read an icon for.
29 RESULT
30 DiskObject - pointer ta diskobject struct.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 GetDiskObject(), GetDefDiskObject()
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 return GetIconTags(name, ICONGETA_FailIfUnavailable, FALSE, TAG_DONE);
49 AROS_LIBFUNC_EXIT
50 } /* GetDiskObjectNew() */