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 15 / develop 15 code / Managing Component Registration / CurlyPrivate.h < prev    next >
Encoding:
Text File  |  1993-06-02  |  1.9 KB  |  97 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        CurlyPrivate.h
  3.  
  4.     Contains:    Private header file for Curly component routines.
  5.  
  6.                 Refer to develop Issue 15, "Managing Component Registration",
  7.                 for details on this code.
  8.  
  9.     Written by:    Gary Woodcock
  10.  
  11.     Copyright:    © 1993 by Apple Computer, Inc.
  12.  
  13.     Change History (most recent first):
  14.  
  15. */
  16.  
  17. //-----------------------------------------------------------------------
  18. // Includes
  19.  
  20. #ifndef    _CURLYPRIVATE_
  21. #define    _CURLYPRIVATE_
  22.  
  23. #include "CompileFlags.h"
  24.  
  25. #include <Components.h>
  26.  
  27. //-----------------------------------------------------------------------
  28. // Private constants
  29.  
  30. // Base resource ID
  31. enum
  32. {
  33.     kCurlyBaseResID = 400
  34. };
  35.  
  36. // Maximum number of instances that can be opened
  37. enum
  38. {
  39.     kMaxCurlyInstances = 1
  40. };
  41.  
  42. // Component and interface revision levels
  43. enum
  44. {
  45.     curlyInterfaceRev = 0x00010001    
  46. };
  47.  
  48. //-----------------------------------------------------------------------
  49. // Private types
  50.  
  51. typedef    struct CurlyPrivateGlobals
  52. {
  53.     Component    self;    // Component ID
  54. }
  55. CurlyPrivateGlobals, *CurlyPrivateGlobalsPtr, **CurlyPrivateGlobalsHdl;
  56.  
  57. //-----------------------------------------------------------------------
  58. // Private prototypes
  59.  
  60. #ifdef BUILD_LINKED
  61.  
  62. // Only need this prototype if we're running linked (for debugging)
  63. pascal ComponentResult
  64. CurlyDispatcher (ComponentParameters *params, Handle storage);
  65.                                          
  66. #endif BUILD_LINKED
  67.                                              
  68. pascal ComponentResult
  69. _CurlyOpen (Handle storage, ComponentInstance self);
  70.     
  71. pascal ComponentResult
  72. _CurlyClose (Handle storage, ComponentInstance self);
  73.  
  74. pascal ComponentResult
  75. _CurlyCanDo (short selector);
  76.  
  77. pascal ComponentResult
  78. _CurlyVersion (void);
  79.  
  80. pascal ComponentResult
  81. _CurlyRegister (void);
  82.  
  83. #ifdef THINK_C
  84. #ifdef BUILD_LINKED
  85.  
  86. Component
  87. RegisterCurly (void);
  88.  
  89. #endif BUILD_LINKED
  90. #endif THINK_C
  91.  
  92. //-----------------------------------------------------------------------
  93.  
  94. #endif _CURLYPRIVATE_
  95.  
  96. //-----------------------------------------------------------------------
  97.