This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Components.k.h
64 lines (41 loc) · 2.38 KB
/
Components.k.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
File: Components.k.h
Contains: Component Manager Interfaces.
Version: Technology: QuickTime 5.0
Release: Universal Interfaces 3.4
Copyright: © 1991-2001 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __COMPONENTS_K__
#define __COMPONENTS_K__
#include <QuickTime/QuickTime.h>
/*
Example usage:
#define CALLCOMPONENT_BASENAME() Fred
#define CALLCOMPONENT_GLOBALS() FredGlobalsHandle
#include <Components.k.h>
To specify that your component implementation does not use globals, do not #define CALLCOMPONENT_GLOBALS
*/
#ifdef CALLCOMPONENT_BASENAME
#ifndef CALLCOMPONENT_GLOBALS
#define CALLCOMPONENT_GLOBALS()
#define ADD_CALLCOMPONENT_COMMA
#else
#define ADD_CALLCOMPONENT_COMMA ,
#endif
#define CALLCOMPONENT_GLUE(a,b) a##b
#define CALLCOMPONENT_STRCAT(a,b) CALLCOMPONENT_GLUE(a,b)
#define ADD_CALLCOMPONENT_BASENAME(name) CALLCOMPONENT_STRCAT(CALLCOMPONENT_BASENAME(),name)
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Open) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance self);
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Close) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance self);
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(CanDo) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA short ftnNumber);
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Version) (CALLCOMPONENT_GLOBALS());
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Register) (CALLCOMPONENT_GLOBALS());
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Target) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentInstance target);
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(Unregister) (CALLCOMPONENT_GLOBALS());
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(GetMPWorkFunction) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA ComponentMPWorkFunctionUPP * workFunction, void ** refCon);
EXTERN_API( ComponentResult ) ADD_CALLCOMPONENT_BASENAME(GetPublicResource) (CALLCOMPONENT_GLOBALS() ADD_CALLCOMPONENT_COMMA OSType resourceType, short resourceID, Handle * resource);
#endif /* CALLCOMPONENT_BASENAME */
#endif /* __COMPONENTS_K__ */