Mac OS 9
ConnectionTools.h
Go to the documentation of this file.
1 
19 #ifndef __CONNECTIONTOOLS__
20 #define __CONNECTIONTOOLS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __DIALOGS__
27 #include <Dialogs.h>
28 #endif
29 
30 #ifndef __CONNECTIONS__
31 #include <Connections.h>
32 #endif
33 
34 #if PRAGMA_ONCE
35 #pragma once
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #if PRAGMA_IMPORT
43 #pragma import on
44 #endif
45 
46 #if PRAGMA_STRUCT_ALIGN
47 #pragma options align = mac68k
48 #elif PRAGMA_STRUCT_PACKPUSH
49 #pragma pack(push, 2)
50 #elif PRAGMA_STRUCT_PACK
51 #pragma pack(2)
52 #endif
53 
54 #if CALL_NOT_IN_CARBON
55 enum {
57  cmInitMsg = 0,
58  cmDisposeMsg = 1,
59  cmSuspendMsg = 2,
60  cmResumeMsg = 3,
61  cmMenuMsg = 4,
62  cmEventMsg = 5,
63  cmActivateMsg = 6,
64  cmDeactivateMsg = 7,
65  cmIdleMsg = 50,
66  cmResetMsg = 51,
67  cmAbortMsg = 52,
68  cmReadMsg = 100,
69  cmWriteMsg = 101,
70  cmStatusMsg = 102,
71  cmListenMsg = 103,
72  cmAcceptMsg = 104,
73  cmCloseMsg = 105,
74  cmOpenMsg = 106,
75  cmBreakMsg = 107,
76  cmIOKillMsg = 108,
77  cmEnvironsMsg = 109,
78  cmNewIOPBMsg = 110,
79  cmDisposeIOPBMsg = 111,
80  cmGetErrorStringMsg = 112,
81  cmPBReadMsg = 113,
82  cmPBWriteMsg = 114,
83  cmPBIOKillMsg = 115
84 };
85 
86 enum {
89  cmDefaultMsg = 1
90 };
91 
92 enum {
95  cmSsetupMsg = 1,
96  cmSitemMsg = 2,
97  cmSfilterMsg = 3,
98  cmScleanupMsg = 4
99 };
100 
101 enum {
104  cmMsetMsg = 1
105 };
106 
107 enum {
110  cmL2Intl = 1
111 };
112 
113 enum {
115  cdefType = FOUR_CHAR_CODE('cdef'),
116  cvalType = FOUR_CHAR_CODE('cval'),
117  csetType =
118  FOUR_CHAR_CODE('cset'),
119  clocType = FOUR_CHAR_CODE(
120  'cloc'),
121  cscrType =
122  FOUR_CHAR_CODE('cscr'),
123  cbndType = FOUR_CHAR_CODE('cbnd'),
124  cverType = FOUR_CHAR_CODE('vers')
125 };
126 
127 struct CMDataBuffer {
128  Ptr thePtr;
129  long count;
130  CMChannel channel;
131  CMFlags flags;
132 };
133 typedef struct CMDataBuffer CMDataBuffer;
136  Boolean async;
137  SInt8 filler;
138  ConnectionCompletionUPP completionRoutine;
139 };
140 typedef struct CMCompletorRecord CMCompletorRecord;
145  short count;
146  Ptr theConfig;
147  short procID;
148 };
149 typedef struct CMSetupStruct CMSetupStruct;
150 typedef CMSetupStruct *CMSetupPtr;
151 #endif
153 #if PRAGMA_STRUCT_ALIGN
154 #pragma options align = reset
155 #elif PRAGMA_STRUCT_PACKPUSH
156 #pragma pack(pop)
157 #elif PRAGMA_STRUCT_PACK
158 #pragma pack()
159 #endif
160 
161 #ifdef PRAGMA_IMPORT_OFF
162 #pragma import off
163 #elif PRAGMA_IMPORT
164 #pragma import reset
165 #endif
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 #endif
Set up for compiler independent conditionals.
@ cmNewIOPBMsg
Definition: ConnectionTools.h:78
@ cmInitMsg
Definition: ConnectionTools.h:57
@ cmValidateMsg
Definition: ConnectionTools.h:88
@ cmMgetMsg
Definition: ConnectionTools.h:103
@ cmL2English
Definition: ConnectionTools.h:109
@ cmSpreflightMsg
Definition: ConnectionTools.h:94
@ csetType
Definition: ConnectionTools.h:117
@ cdefType
Definition: ConnectionTools.h:115
@ cbndType
Definition: ConnectionTools.h:123
@ cverType
Definition: ConnectionTools.h:124
@ cvalType
Definition: ConnectionTools.h:116
@ clocType
Definition: ConnectionTools.h:119
@ cscrType
Definition: ConnectionTools.h:121
Communications Toolbox Connection Manager Interfaces.
Dialog Manager interfaces.
unsigned char Boolean
Definition: MacTypes.h:318
Definition: ConnectionTools.h:135
Definition: ConnectionTools.h:127
Definition: ConnectionTools.h:143
Definition: Quickdraw.h:1648