home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 12 / develop 12 code / Components / MathComponentPrivate.h < prev    next >
Encoding:
Text File  |  1992-10-16  |  1.7 KB  |  72 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MathComponentPrivate.h
  3.  
  4.     Contains:    Private header file for math component routines.
  5.  
  6.     Written by:    Gary Woodcock
  7.  
  8.     Copyright:    © 1992 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12. */
  13.  
  14. //-----------------------------------------------------------------------
  15. // Includes
  16.  
  17. #ifndef    _MATHCOMPONENTPRIVATE_
  18. #define    _MATHCOMPONENTPRIVATE_
  19.  
  20. #include <QuickTimeComponents.h>
  21. #include "DebugFlags.h"
  22.  
  23. //-----------------------------------------------------------------------
  24. // Private constants
  25.  
  26. // Maximum number of instances that can be opened
  27. enum
  28. {
  29.     kMaxMathInstances = 3    
  30. };
  31.  
  32. // Component and interface revision levels
  33. enum
  34. {
  35.     mathInterfaceRevision = 0x00010001    
  36. };
  37.  
  38. enum
  39. {
  40.     kGenericError = -1L                    // Handy return code
  41. };
  42.  
  43. //-----------------------------------------------------------------------
  44. // Private types
  45.  
  46. typedef    struct    PrivateGlobals
  47. {
  48.     Component            self;                        // Our component ID
  49.     ComponentInstance    capturingComponentInstance;    // Capturing component instance
  50.     Component            delegateComponent;            // Delegate component ID
  51.     ComponentInstance    delegateComponentInstance;    // Delegate component instance
  52.     short                resRefNum;                    // Our resource refNum
  53. }
  54. PrivateGlobals, *PrivateGlobalsPtr, **PrivateGlobalsHdl;
  55.  
  56. //-----------------------------------------------------------------------
  57. // Private prototypes
  58.  
  59. #ifdef DEBUG_IT
  60.  
  61. // Only need this prototype if we're running linked (for debugging)
  62. pascal    ComponentResult    MathDispatcher    (ComponentParameters    *params,
  63.                                          Handle                    storage);
  64.                                          
  65. #endif DEBUG_IT
  66.                                              
  67. //-----------------------------------------------------------------------
  68.  
  69. #endif    _MATHCOMPONENTPRIVATE_
  70.  
  71. //-----------------------------------------------------------------------
  72.