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 / MoMathComponent.h < prev    next >
Encoding:
Text File  |  1992-10-16  |  1.1 KB  |  57 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MoMathComponent.h
  3.  
  4.     Contains:    Header file for MoMath 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    _MOMATHCOMPONENT_
  18. #define    _MOMATHCOMPONENT_
  19.  
  20. #include <Components.h>
  21. #include <QuickTimeComponents.h>
  22.  
  23. //-----------------------------------------------------------------------
  24. // Public constants
  25.  
  26. // Special manufacturer for MoMath component
  27. #define    moMathComponentMfg    'gwck'
  28.  
  29. // Add request code
  30. enum
  31. {
  32.     kDoAddSelect = 256
  33. };
  34.  
  35. //-----------------------------------------------------------------------
  36. // Public interfaces
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif __cplusplus
  41.  
  42. // Add prototype
  43. pascal    ComponentResult    DoAdd    (MathComponent    mathInstance,
  44.                                  short            firstNum,
  45.                                  short            secondNum,
  46.                                  short            *additionResult)
  47.                             
  48.     = ComponentCallNow (kDoAddSelect, 0x08);         
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif __cplusplus
  53.  
  54. #endif _MOMATHCOMPONENT_
  55.  
  56. //-----------------------------------------------------------------------
  57.