[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


NAME
    GetDiskObject - read in a Workbench disk object from disk.

SYNOPSIS
    diskobj = GetDiskObject(name)
      D0                      A0

    struct DiskObject *GetDiskObject(char *);

FUNCTION
    This routine reads in a Workbench disk object in from disk.  The
    name parameter will have a ".info" postpended to it, and the
    info file of that name will be read.  If the call fails,
    it will return zero.  The reason for the failure may be obtained
    via IoErr().

    Using this routine protects you from any future changes to
    the way icons are stored within the system.

    A FreeList structure is allocated just after the DiskObject
    structure; FreeDiskObject makes use of this to get rid of the
    memory that was allocated.

INPUTS
    name -- name of the object (char *) or NULL if you just want a
            DiskObject structure allocated for you (useful when
            calling AddAppIcon in workbench.library).

RESULTS
    diskobj -- the Workbench disk object in question

SEE ALSO
    GetDiskObjectNew(), PutDiskObject(), DeleteDiskObject(),
    FreeDiskObject()

BUGS
    None


[Back to Amiga Developer Docs]