home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / QuickTime Mac / ComponentIncludes / Components.k.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  66 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Components.k.h
  3.  
  4.      Contains:    QuickTime interfaces
  5.  
  6.      Version:    Technology:    
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __COMPONENTS_K__
  19. #define __COMPONENTS_K__
  20.  
  21. #include <Components.h>
  22.  
  23. /*
  24.     Example usage:
  25.  
  26.         #define CALLCOMPONENT_BASENAME()    Fred
  27.         #define CALLCOMPONENT_GLOBALS()    FredGlobalsHandle
  28.         #include <Components.k.h>
  29.  
  30.     To specify that your component implementation does not use globals, do not #define CALLCOMPONENT_GLOBALS
  31. */
  32. #ifdef CALLCOMPONENT_BASENAME
  33.     #ifndef CALLCOMPONENT_GLOBALS
  34.         #define CALLCOMPONENT_GLOBALS() 
  35.         #define ADD_CALLCOMPONENT_COMMA 
  36.     #else
  37.         #define ADD_CALLCOMPONENT_COMMA ,
  38.     #endif
  39.     #define CALLCOMPONENT_GLUE(a,b) a##b
  40.     #define CALLCOMPONENT_STRCAT(a,b) CALLCOMPONENT_GLUE(a,b)
  41.     #define ADD_CALLCOMPONENT_BASENAME(name) CALLCOMPONENT_STRCAT(CALLCOMPONENT_BASENAME(),name)
  42.  
  43.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Open) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance  self);
  44.  
  45.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Close) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance  self);
  46.  
  47.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(CanDo) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA short  ftnNumber);
  48.  
  49.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Version) (CALLCOMPONENT_GLOBALS());
  50.  
  51.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Register) (CALLCOMPONENT_GLOBALS());
  52.  
  53.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Target) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance  target);
  54.  
  55.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(Unregister) (CALLCOMPONENT_GLOBALS());
  56.  
  57.     EXTERN_API( ComponentResult  ) ADD_CALLCOMPONENT_BASENAME(GetMPWorkFunction) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentMPWorkFunctionUPP * workFunction, void ** refCon);
  58.  
  59. #if !TARGET_OS_MAC
  60. #endif
  61. #endif    /* CALLCOMPONENT_BASENAME */
  62.  
  63.  
  64. #endif /* __COMPONENTS_K__ */
  65.  
  66.