home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / workbench / libs / icon / getdefdiskobject.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-03  |  1.2 KB  |  59 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: getdefdiskobject.c,v 1.1 1997/02/03 13:34:33 digulla Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "icon_intern.h"
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <proto/icon.h>
  14.  
  15.     AROS_LH1(struct DiskObject *, GetDefDiskObject,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(long, type, D0),
  19.  
  20. /*  LOCATION */
  21.     struct Library *, IconBase, 20, Icon)
  22.  
  23. /*  FUNCTION
  24.     Gets the default icon for the supplied type of icon.
  25.  
  26.     INPUTS
  27.     type  -  type of icon to get default diskobject for.
  28.  
  29.  
  30.     RESULT
  31.     DiskObject structure or NULL if an error occured. The error may
  32.     be obtained by IoErr().
  33.  
  34.     NOTES
  35.  
  36.     EXAMPLE
  37.  
  38.     BUGS
  39.  
  40.     SEE ALSO
  41.     PutDefDiskObject(), GetDiskObjectNew()
  42.  
  43.     INTERNALS
  44.  
  45.     HISTORY
  46.  
  47. *****************************************************************************/
  48. {
  49.     AROS_LIBFUNC_INIT
  50.     AROS_LIBBASE_EXT_DECL(struct Library *,IconBase)
  51.     UBYTE deficonname[MAX_DEFICON_FILEPATH]; /* Will contain path and name
  52.                     of a defaulticon "ENVARC:Sys/..." */
  53.  
  54.     GetDefIconName (type, deficonname);
  55.  
  56.     return GetDiskObject (deficonname);
  57.     AROS_LIBFUNC_EXIT
  58. } /* GetDefDiskObject */
  59.