home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / addclass.c < prev    next >
C/C++ Source or Header  |  1997-01-27  |  2KB  |  79 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: addclass.c,v 1.4 1997/01/27 00:36:35 ldp Exp $
  4.     $Log: addclass.c,v $
  5.     Revision 1.4  1997/01/27 00:36:35  ldp
  6.     Polish
  7.  
  8.     Revision 1.3  1996/12/10 14:00:00  aros
  9.     Moved #include into first column to allow makedepend to see it.
  10.  
  11.     Revision 1.2  1996/10/24 15:51:17  aros
  12.     Use the official AROS macros over the __AROS versions.
  13.  
  14.     Revision 1.1  1996/08/28 17:55:34  digulla
  15.     Proportional gadgets
  16.     BOOPSI
  17.  
  18.  
  19.     Desc:
  20.     Lang: english
  21. */
  22. #include <proto/exec.h>
  23. #include "intuition_intern.h"
  24.  
  25. /*****************************************************************************
  26.  
  27.     NAME */
  28. #include <intuition/classes.h>
  29. #include <proto/intuition.h>
  30.  
  31.     AROS_LH1(void, AddClass,
  32.  
  33. /*  SYNOPSIS */
  34.     AROS_LHA(struct IClass *, classPtr, A0),
  35.  
  36. /*  LOCATION */
  37.     struct IntuitionBase *, IntuitionBase, 114, Intuition)
  38.  
  39. /*  FUNCTION
  40.     Makes a class publically usable. This function must not be called
  41.     before MakeClass().
  42.  
  43.     INPUTS
  44.     class - The result of MakeClass()
  45.  
  46.     RESULT
  47.     None.
  48.  
  49.     NOTES
  50.  
  51.     EXAMPLE
  52.     There is no protection against creating multiple classes with
  53.     the same name yet. The operation of the system is undefined
  54.     in this case.
  55.  
  56.     BUGS
  57.  
  58.     SEE ALSO
  59.     MakeClass(), FreeClass(), RemoveClass(), "Basic Object-Oriented
  60.     Programming System for Intuition" and "boopsi Class Reference"
  61.  
  62.     INTERNALS
  63.  
  64.     HISTORY
  65.     29-10-95    digulla automatically created from
  66.                 intuition_lib.fd and clib/intuition_protos.h
  67.  
  68. *****************************************************************************/
  69. {
  70.     AROS_LIBFUNC_INIT
  71.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  72.  
  73.     AddTail (PublicClassList, (struct Node *)classPtr);
  74.  
  75.     classPtr->cl_Flags |= CLF_INLIST;
  76.  
  77.     AROS_LIBFUNC_EXIT
  78. } /* AddClass */
  79.