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 / NuMathComponentPrivate.h < prev   
Encoding:
Text File  |  1992-10-16  |  1.8 KB  |  76 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        NuMathComponentPrivate.h
  3.  
  4.     Contains:    Private header file for NuMath 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    _NUMATHCOMPONENTPRIVATE_
  18. #define    _NUMATHCOMPONENTPRIVATE_
  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.     kMaxNuMathInstances = 1    
  30. };
  31.  
  32. // Component and interface revision levels
  33. enum
  34. {
  35.     nuMathInterfaceRevision = 0x00010001    
  36. };
  37.  
  38.  
  39. //-----------------------------------------------------------------------
  40. // Private prototypes
  41.  
  42. #ifdef DEBUG_IT
  43.  
  44. // Only need this prototype if we're running linked (for debugging)
  45. pascal    ComponentResult    NuMathDispatcher    (ComponentParameters    *params,
  46.                                              Handle                    storage);
  47.  
  48. #endif DEBUG_IT
  49.                                              
  50. pascal    ComponentResult    _NuMathOpen            (Handle                    storage,
  51.                                              ComponentInstance        self);
  52.  
  53. pascal    ComponentResult    _NuMathClose        (Handle                    storage,
  54.                                              ComponentInstance        self);
  55.  
  56. pascal    ComponentResult    _NuMathCanDo        (short                    selector);
  57.  
  58. pascal    ComponentResult    _NuMathVersion        (void);
  59.  
  60. pascal    ComponentResult    _NuMathRegister        (void);
  61.     
  62. pascal    ComponentResult    _NuMathDoDivide        (short                    numerator,
  63.                                              short                    denominator,
  64.                                              short                    *quotient);
  65.                                              
  66. pascal    ComponentResult    _NuMathDoMultiply    (Handle                    storage,
  67.                                               short                    firstNum,
  68.                                              short                    secondNum,
  69.                                              short                    *multiplicationResult);
  70.  
  71. //-----------------------------------------------------------------------
  72.  
  73. #endif    _NUMATHCOMPONENTPRIVATE_
  74.  
  75. //-----------------------------------------------------------------------
  76.