home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Macintosh / ASClient Update SDK / UpdateSDK / Headers / ASUpdateFileUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-19  |  2.4 KB  |  65 lines  |  [TEXT/MPS ]

  1.  
  2. /*===============================================================================================================
  3.  
  4.         ASUpdateFileUtilities.h
  5.     
  6.         Copyright Apple Computer, Inc. 1992-1993
  7.         All rights reserved
  8.  
  9. ===============================================================================================================*/
  10.  
  11. #ifndef __ASUPDATEFILEUTILITIES__
  12. #define __ASUPDATEFILEUTILITIES__
  13.  
  14. //_______________________________________________________________________________________________________________
  15. //____________________________________________________ INCLUDES _________________________________________________
  16. //_______________________________________________________________________________________________________________
  17.  
  18. #include <Files.h>
  19.  
  20. #ifndef __ASUPDATETYPES__
  21. #include "ASUpdateTypes.h"
  22. #endif                                                
  23.  
  24. #ifndef __ASUPDATECONSTANTS__
  25. #include "ASUpdateConstants.h"
  26. #endif                                                
  27.  
  28. //_______________________________________________________________________________________________________________
  29. //_____________________________________________________ STRUCTS _________________________________________________
  30. //_______________________________________________________________________________________________________________
  31.  
  32. struct ASUUpdateInfo {
  33.     ASUType        updateType;
  34.     long        updateVersion;
  35. };
  36. typedef struct ASUUpdateInfo ASUUpdateInfo, *ASUUpdateInfoPtr;
  37.  
  38. //_______________________________________________________________________________________________________________
  39. //_______________________________________________ FUNCTION PROTOTYPES ___________________________________________
  40. //_______________________________________________________________________________________________________________
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. // Update file management
  46.  
  47. OSErr    ASUCreateUpdateFile( FSSpec* file, OSType creator, ASUType type, long version );
  48. OSErr    ASUOpenUpdateFile( FSSpec* file, short* refnum );
  49. OSErr    ASUCloseUpdateFile( short refnum );
  50.  
  51. OSErr    ASUCompactUpdateFile( short refnum );
  52.  
  53. //_______________________________________________________________________________________________________________
  54. // Accessing newspaper info
  55.  
  56. OSErr    ASUReadUpdateInfo( short refnum, ASUUpdateInfo* header );
  57. OSErr    ASUWriteUpdateInfo( short refnum, ASUUpdateInfo* header );
  58.  
  59. //_______________________________________________________________________________________________________________
  60.  
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #endif                                                            // __ASUPDATEFILEUTILITIES__