home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / CacheP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  1.6 KB  |  69 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: CacheP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:34:40 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmCacheP_h
  14. #define _XmCacheP_h
  15.  
  16. #include <Xm/GadgetP.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /* a few convenience macros */
  23.  
  24. #define ClassCacheHead(cp) \
  25.     ((cp)->cache_head)
  26.  
  27. #define ClassCacheCopy(cp) \
  28.     ((cp)->cache_copy)
  29.  
  30. #define ClassCacheCompare(cp) \
  31.     ((cp)->cache_compare)
  32.  
  33. #define CacheDataPtr(p) \
  34.     ((XtPointer)&((XmGadgetCacheRef*)p)-> data)
  35.  
  36. #define DataToGadgetCache(p)    ((char *)p - sizeof(XmGadgetCache))
  37.  
  38.  
  39. /********    Private Function Declarations    ********/
  40. #ifdef _NO_PROTO
  41.  
  42. extern void _XmCacheDelete() ;
  43. extern void _XmCacheCopy() ;
  44. extern XtPointer _XmCachePart() ;
  45.  
  46. #else
  47.  
  48. extern void _XmCacheDelete( 
  49.                         XtPointer data) ;
  50. extern void _XmCacheCopy( 
  51.                         XtPointer src,
  52.                         XtPointer dest,
  53.                         size_t size) ;
  54. extern XtPointer _XmCachePart( 
  55.                         XmCacheClassPartPtr cp,
  56.                         XtPointer cpart,
  57.                         size_t size) ;
  58.  
  59. #endif /* _NO_PROTO */
  60. /********    End Private Function Declarations    ********/
  61.  
  62.  
  63. #ifdef __cplusplus
  64. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  65. #endif
  66.  
  67. #endif /* _XmCacheP_h */
  68. /* DON'T ADD ANYTHING AFTER THIS #endif */
  69.