home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / intuition / disposeobject.c < prev    next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  1.9 KB  |  78 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: disposeobject.c,v 1.2 1996/10/24 15:51:18 aros Exp $
  4.     $Log: disposeobject.c,v $
  5.     Revision 1.2  1996/10/24 15:51:18  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.1  1996/08/28 17:55:34  digulla
  9.     Proportional gadgets
  10.     BOOPSI
  11.  
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <intuition/classes.h>
  17. #include <clib/alib_protos.h>
  18. #include "intuition_intern.h"
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.     #include <intuition/classusr.h>
  24.     #include <clib/intuition_protos.h>
  25.  
  26.     AROS_LH1(void, DisposeObject,
  27.  
  28. /*  SYNOPSIS */
  29.     AROS_LHA(APTR, object, A0),
  30.  
  31. /*  LOCATION */
  32.     struct IntuitionBase *, IntuitionBase, 107, Intuition)
  33.  
  34. /*  FUNCTION
  35.     Deletes a BOOPSI object. All memory associated with the object
  36.     is freed. The object must have been created with NewObject().
  37.     Some object contain other object which might be freed as well
  38.     when this function is used on the "parent" while others might
  39.     also contain children but won't free them. Read the documentation
  40.     of the class carefully to find out how it behaves.
  41.  
  42.     INPUTS
  43.     object - The result of a call to NewObject() or a similar function.
  44.  
  45.     RESULT
  46.     None.
  47.  
  48.     NOTES
  49.     This functions sends OM_DISPOSE to the oejct.
  50.  
  51.     EXAMPLE
  52.  
  53.     BUGS
  54.  
  55.     SEE ALSO
  56.     NewObject(), SetAttrs((), GetAttr(), MakeClass()
  57.     "Basic Object-Oriented Programming System for Intuition" and
  58.     "boopsi Class Reference" Dokument.
  59.  
  60.     INTERNALS
  61.  
  62.     HISTORY
  63.     29-10-95    digulla automatically created from
  64.                 intuition_lib.fd and clib/intuition_protos.h
  65.  
  66. *****************************************************************************/
  67. {
  68.     AROS_LIBFUNC_INIT
  69.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  70.     ULONG MethodID = OM_DISPOSE;
  71.  
  72.     OCLASS (object)->cl_ObjectCount --;
  73.  
  74.     DoMethodA (object, (Msg)&MethodID);
  75.  
  76.     AROS_LIBFUNC_EXIT
  77. } /* DisposeObject */
  78.