home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / c_library / rtlibrary / include / rt.h < prev   
C/C++ Source or Header  |  1977-12-31  |  927b  |  48 lines

  1. /*
  2.  * $Id: rt_h $
  3.  *
  4.  * Author: Tomi Ollila <Tomi.Ollila@hut.fi>
  5.  *
  6.  *     Copyright (c) 1994 Tomi Ollila
  7.  *         All rights reserved
  8.  *
  9.  * Created: Sat Dec 24 23:08:52 1994 too
  10.  * Last modified: Wed Feb  1 00:14:56 1995 too
  11.  *
  12.  * HISTORY 
  13.  * $Log: $
  14.  */
  15.  
  16. #ifndef RT_H
  17. #define RT_H
  18.  
  19. #ifndef EXEC_TYPES_H
  20. #include <exec/types.h>
  21. #endif
  22.  
  23. struct RT;
  24. struct RTNode;
  25.  
  26. /*
  27.  *    RT_Rem* flags
  28.  */
  29. #define RTRF_DATA    0x01    /* either data or node, must be present */
  30. #define RTRF_NODE    0x02
  31.  
  32. #define RTRF_REMTO    0x04    /* either to or until, when needed */
  33. #define RTRF_REMUNTIL    0x08
  34.  
  35. struct RT *    rt_Create(int size);
  36. struct RTNode *    rt_Add(struct RT * rt,  void * func, void * data);
  37. void        rt_Delete(struct RT * rt);
  38.  
  39. BOOL rt_RemData(struct RT * rt, void * data);
  40. void rt_RemNode(struct RT * rt, struct RTNode * node);
  41. void rt_RemSome(struct RT * rt, void * ptr, ULONG flags);
  42.  
  43. #ifndef unless
  44. #define unless(x) if (!(x))
  45. #endif
  46.  
  47. #endif /* RT_H */
  48.