home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWCollec / SLCollec.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.1 KB  |  70 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLCollec.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLCOLLEC_H
  11. #define SLCOLLEC_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. // Forward Class Declarations
  19. //========================================================================================
  20.  
  21. class FW_CPrivLinkedList;
  22. class FW_CPrivLinkedListIterator;
  23.  
  24. //========================================================================================
  25. // Matching Proc
  26. //========================================================================================
  27.  
  28. typedef FW_Boolean (*FW_OrderedCollection_MatchProc)(const void* v1,const void* v2);
  29.  
  30. //========================================================================================
  31. // Type definitions
  32. //========================================================================================
  33.  
  34. typedef FW_CPrivLinkedList*             FW_HLinkedList;
  35. typedef FW_CPrivLinkedListIterator*     FW_HLinkedListIterator;
  36.  
  37. //========================================================================================
  38. // Extern C Methods
  39. //========================================================================================
  40.  
  41. // Export or Import functions for CFM-68K [sfu]
  42.  
  43. FW_EXTERN_C_BEGIN
  44.  
  45. #if defined(FW_ODFLIB_IMPORT)
  46. #pragma import on
  47. #elif defined(FW_ODFLIB)
  48. #pragma export on
  49. #endif
  50.  
  51. extern FW_HLinkedList                 FW_PrivNewLinkedList(FW_PlatformError* error);
  52. extern void                         FW_PrivDeleteLinkedList(FW_HLinkedList list);
  53.  
  54. extern FW_HLinkedListIterator         FW_PrivNewLinkedListIterator(FW_HLinkedList list, 
  55.                                                         FW_PlatformError* error);
  56. extern void                         FW_PrivDeleteLinkedListIterator(FW_HLinkedListIterator iterator);
  57.  
  58. // For CFM-68K [sfu]
  59.  
  60. #if defined(FW_ODFLIB_IMPORT)
  61. #pragma import off
  62. #elif defined(FW_ODFLIB)
  63. #pragma export off
  64. #endif
  65.  
  66. FW_EXTERN_C_END
  67.  
  68.  
  69. #endif
  70.