Subversion Repositories filter_foundry

Rev

Rev 193 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /*------------------------------------------------------------------------------
  2. #
  3. #       Macintosh Developer Technical Support
  4. #
  5. #       Sample Control Panel Device and INIT Combination
  6. #
  7. #       Program:        INIT - CDEV
  8. #       File:           SAGlobals.h     -       C Header for SAGlobals.c
  9. #
  10. #       Copyright © 1990 Apple Computer, Inc.
  11. #       All rights reserved.
  12. #
  13. ------------------------------------------------------------------------------*/
  14.  
  15. /* Stand-alone code modules which need to use global variables
  16.    may include the interfaces in this unit. Such code modules
  17.    must also be linked with Runtime.o and SAGlobals.o. */
  18.  
  19. #include <Types.h>
  20. typedef Ptr A5RefType;          /* !!! changed from Handle to Ptr for this sample */
  21.  
  22.  
  23. /* MakeA5World allocates space for an A5 world based on the
  24.   size of the global variables defined by the module and its
  25.   units. If sufficient space is not available, MakeA5World
  26.   returns NIL for A5Ref and further initialization is aborted. */
  27. pascal void MakeA5World (A5RefType *A5Ref);
  28.  
  29.  
  30. /* SetA5World locks down a previously-allocated handle containing
  31.    an A5 world and sets the A5 register appropriately. The return
  32.    value is the old value of A5 and the client should save it for
  33.    use by RestoreA5World. */
  34. pascal long SetA5World (A5RefType A5Ref);
  35.  
  36.  
  37. /* DisposeA5World simply disposes of the A5 world handle. */
  38. pascal void DisposeA5World (A5RefType A5Ref);
  39.