Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2542 lines
83 KiB

  1. /*
  2. File: AppleTalk.h
  3. Contains: AppleTalk Interfaces.
  4. Version: Technology: System 8.5
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1985-1999 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __APPLETALK__
  12. #define __APPLETALK__
  13. #ifndef __MACTYPES__
  14. #include <MacTypes.h>
  15. #endif
  16. #ifndef __OSUTILS__
  17. #include <OSUtils.h>
  18. #endif
  19. #if PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #if PRAGMA_IMPORT
  26. #pragma import on
  27. #endif
  28. #if PRAGMA_STRUCT_ALIGN
  29. #pragma options align=mac68k
  30. #elif PRAGMA_STRUCT_PACKPUSH
  31. #pragma pack(push, 2)
  32. #elif PRAGMA_STRUCT_PACK
  33. #pragma pack(2)
  34. #endif
  35. enum {
  36. /* Driver unit numbers (ADSP is dynamic) */
  37. mppUnitNum = 9, /* MPP unit number */
  38. atpUnitNum = 10, /* ATP unit number */
  39. xppUnitNum = 40 /* XPP unit number */
  40. };
  41. enum {
  42. /* Driver refNums (ADSP is dynamic) */
  43. mppRefNum = -10, /* MPP reference number */
  44. atpRefNum = -11, /* ATP reference number */
  45. xppRefNum = -41 /* XPP reference number */
  46. };
  47. enum {
  48. /* .MPP csCodes */
  49. lookupReply = 242, /* This command queued to ourself */
  50. writeLAP = 243, /* Write out LAP packet */
  51. detachPH = 244, /* Detach LAP protocol handler */
  52. attachPH = 245, /* Attach LAP protocol handler */
  53. writeDDP = 246, /* Write out DDP packet */
  54. closeSkt = 247, /* Close DDP socket */
  55. openSkt = 248, /* Open DDP socket */
  56. loadNBP = 249, /* Load NBP command-executing code */
  57. lastResident = 249, /* Last resident command */
  58. confirmName = 250, /* Confirm name */
  59. lookupName = 251, /* Look up name on internet */
  60. removeName = 252, /* Remove name from Names Table */
  61. registerName = 253, /* Register name in Names Table */
  62. killNBP = 254, /* Kill outstanding NBP request */
  63. unloadNBP = 255, /* Unload NBP command code */
  64. setSelfSend = 256, /* MPP: Set to allow writes to self */
  65. SetMyZone = 257, /* Set my zone name */
  66. GetATalkInfo = 258, /* get AppleTalk information */
  67. ATalkClosePrep = 259 /* AppleTalk close query */
  68. };
  69. enum {
  70. /* .ATP csCodes */
  71. nSendRequest = 248, /* NSendRequest code */
  72. relRspCB = 249, /* Release RspCB */
  73. closeATPSkt = 250, /* Close ATP socket */
  74. addResponse = 251, /* Add response code | Require open skt */
  75. sendResponse = 252, /* Send response code */
  76. getRequest = 253, /* Get request code */
  77. openATPSkt = 254, /* Open ATP socket */
  78. sendRequest = 255, /* Send request code */
  79. relTCB = 256, /* Release TCB */
  80. killGetReq = 257, /* Kill GetRequest */
  81. killSendReq = 258, /* Kill SendRequest */
  82. killAllGetReq = 259 /* Kill all getRequests for a skt */
  83. };
  84. enum {
  85. /* .XPP csCodes */
  86. openSess = 255, /* Open session */
  87. closeSess = 254, /* Close session */
  88. userCommand = 253, /* User command */
  89. userWrite = 252, /* User write */
  90. getStatus = 251, /* Get status */
  91. afpCall = 250, /* AFP command (buffer has command code) */
  92. getParms = 249, /* Get parameters */
  93. abortOS = 248, /* Abort open session request */
  94. closeAll = 247, /* Close all open sessions */
  95. xCall = 246 /* .XPP extended calls */
  96. };
  97. enum {
  98. /* Transition Queue transition types */
  99. ATTransOpen = 0, /*AppleTalk has opened*/
  100. ATTransClose = 2, /*AppleTalk is about to close*/
  101. ATTransClosePrep = 3, /*Is it OK to close AppleTalk ?*/
  102. ATTransCancelClose = 4 /*Cancel the ClosePrep transition*/
  103. };
  104. enum {
  105. afpByteRangeLock = 1, /*AFPCall command codes*/
  106. afpVolClose = 2, /*AFPCall command codes*/
  107. afpDirClose = 3, /*AFPCall command codes*/
  108. afpForkClose = 4, /*AFPCall command codes*/
  109. afpCopyFile = 5, /*AFPCall command codes*/
  110. afpDirCreate = 6, /*AFPCall command codes*/
  111. afpFileCreate = 7, /*AFPCall command codes*/
  112. afpDelete = 8, /*AFPCall command codes*/
  113. afpEnumerate = 9, /*AFPCall command codes*/
  114. afpFlush = 10, /*AFPCall command codes*/
  115. afpForkFlush = 11, /*AFPCall command codes*/
  116. afpGetDirParms = 12, /*AFPCall command codes*/
  117. afpGetFileParms = 13, /*AFPCall command codes*/
  118. afpGetForkParms = 14, /*AFPCall command codes*/
  119. afpGetSInfo = 15, /*AFPCall command codes*/
  120. afpGetSParms = 16, /*AFPCall command codes*/
  121. afpGetVolParms = 17, /*AFPCall command codes*/
  122. afpLogin = 18, /*AFPCall command codes*/
  123. afpContLogin = 19, /*AFPCall command codes*/
  124. afpLogout = 20, /*AFPCall command codes*/
  125. afpMapID = 21, /*AFPCall command codes*/
  126. afpMapName = 22, /*AFPCall command codes*/
  127. afpMove = 23, /*AFPCall command codes*/
  128. afpOpenVol = 24, /*AFPCall command codes*/
  129. afpOpenDir = 25, /*AFPCall command codes*/
  130. afpOpenFork = 26, /*AFPCall command codes*/
  131. afpRead = 27, /*AFPCall command codes*/
  132. afpRename = 28, /*AFPCall command codes*/
  133. afpSetDirParms = 29, /*AFPCall command codes*/
  134. afpSetFileParms = 30, /*AFPCall command codes*/
  135. afpSetForkParms = 31, /*AFPCall command codes*/
  136. afpSetVolParms = 32, /*AFPCall command codes*/
  137. afpWrite = 33, /*AFPCall command codes*/
  138. afpGetFlDrParms = 34, /*AFPCall command codes*/
  139. afpSetFlDrParms = 35, /*AFPCall command codes*/
  140. afpDTOpen = 48, /*AFPCall command codes*/
  141. afpDTClose = 49, /*AFPCall command codes*/
  142. afpGetIcon = 51, /*AFPCall command codes*/
  143. afpGtIcnInfo = 52, /*AFPCall command codes*/
  144. afpAddAPPL = 53, /*AFPCall command codes*/
  145. afpRmvAPPL = 54, /*AFPCall command codes*/
  146. afpGetAPPL = 55, /*AFPCall command codes*/
  147. afpAddCmt = 56, /*AFPCall command codes*/
  148. afpRmvCmt = 57, /*AFPCall command codes*/
  149. afpGetCmt = 58, /*AFPCall command codes*/
  150. afpAddIcon = 192 /*Special code for ASP Write commands*/
  151. };
  152. enum {
  153. xppLoadedBit = 5, /* XPP bit in PortBUse */
  154. scbMemSize = 192, /* Size of memory for SCB */
  155. xppFlagClr = 0 /* Cs for AFPCommandBlock */
  156. };
  157. enum {
  158. xppFlagSet = 128 /* StartEndFlag & NewLineFlag fields. */
  159. };
  160. enum {
  161. lapSize = 20,
  162. ddpSize = 26,
  163. nbpSize = 26,
  164. atpSize = 56
  165. };
  166. enum {
  167. atpXOvalue = 32, /*ATP exactly-once bit */
  168. atpEOMvalue = 16, /*ATP End-Of-Message bit */
  169. atpSTSvalue = 8, /*ATP Send-Transmission-Status bit */
  170. atpTIDValidvalue = 2, /*ATP trans. ID valid bit */
  171. atpSendChkvalue = 1 /*ATP send checksum bit */
  172. };
  173. enum {
  174. zipGetLocalZones = 5,
  175. zipGetZoneList = 6,
  176. zipGetMyZone = 7
  177. };
  178. enum {
  179. LAPMgrPtr = 0x0B18 /*Entry point for LAP Manager*/
  180. };
  181. enum {
  182. LAPMgrCall = 2, /*Offset to LAP routines*/
  183. LAddAEQ = 23, /*LAPAddATQ routine selector*/
  184. LRmvAEQ = 24 /*LAPRmvATQ routine selector*/
  185. };
  186. #define MPPioCompletion MPP.ioCompletion
  187. #define MPPioResult MPP.ioResult
  188. #define MPPioRefNum MPP.ioRefNum
  189. #define MPPcsCode MPP.csCode
  190. #define LAPprotType LAP.protType
  191. #define LAPwdsPointer LAP.u.wdsPointer
  192. #define LAPhandler LAP.u.handler
  193. #define DDPsocket DDP.socket
  194. #define DDPchecksumFlag DDP.checksumFlag
  195. #define DDPwdsPointer DDP.u.wdsPointer
  196. #define DDPlistener DDP.u.listener
  197. #define NBPinterval NBP.interval
  198. #define NBPcount NBP.count
  199. #define NBPntQElPtr NBP.nbpPtrs.ntQElPtr
  200. #define NBPentityPtr NBP.nbpPtrs.entityPtr
  201. #define NBPverifyFlag NBP.parm.verifyFlag
  202. #define NBPretBuffPtr NBP.parm.Lookup.retBuffPtr
  203. #define NBPretBuffSize NBP.parm.Lookup.retBuffSize
  204. #define NBPmaxToGet NBP.parm.Lookup.maxToGet
  205. #define NBPnumGotten NBP.parm.Lookup.numGotten
  206. #define NBPconfirmAddr NBP.parm.Confirm.confirmAddr
  207. #define NBPnKillQEl NBPKILL.nKillQEl
  208. #define NBPnewSocket NBP.parm.Confirm.newSocket
  209. #define ATPioCompletion ATP.ioCompletion
  210. #define ATPioResult ATP.ioResult
  211. #define ATPuserData ATP.userData
  212. #define ATPreqTID ATP.reqTID
  213. #define ATPioRefNum ATP.ioRefNum
  214. #define ATPcsCode ATP.csCode
  215. #define ATPatpSocket ATP.atpSocket
  216. #define ATPatpFlags ATP.atpFlags
  217. #define ATPaddrBlock ATP.addrBlock
  218. #define ATPreqLength ATP.reqLength
  219. #define ATPreqPointer ATP.reqPointer
  220. #define ATPbdsPointer ATP.bdsPointer
  221. #define ATPtimeOutVal SREQ.timeOutVal
  222. #define ATPnumOfResps SREQ.numOfResps
  223. #define ATPretryCount SREQ.retryCount
  224. #define ATPnumOfBuffs OTH1.u.numOfBuffs
  225. #define ATPbitMap OTH1.u.bitMap
  226. #define ATPrspNum OTH1.u.rspNum
  227. #define ATPbdsSize OTH2.bdsSize
  228. #define ATPtransID OTH2.transID
  229. #define ATPaKillQEl KILL.aKillQEl
  230. enum {
  231. tLAPRead = 0,
  232. tLAPWrite = 1,
  233. tDDPRead = 2,
  234. tDDPWrite = 3,
  235. tNBPLookup = 4,
  236. tNBPConfirm = 5,
  237. tNBPRegister = 6,
  238. tATPSndRequest = 7,
  239. tATPGetRequest = 8,
  240. tATPSdRsp = 9,
  241. tATPAddRsp = 10,
  242. tATPRequest = 11,
  243. tATPResponse = 12
  244. };
  245. typedef SInt8 ABCallType;
  246. enum {
  247. lapProto = 0,
  248. ddpProto = 1,
  249. nbpProto = 2,
  250. atpProto = 3
  251. };
  252. typedef UInt8 ABProtoType;
  253. typedef Byte ABByte;
  254. struct LAPAdrBlock {
  255. UInt8 dstNodeID;
  256. UInt8 srcNodeID;
  257. ABByte lapProtType;
  258. UInt8 filler; /* Filler for proper byte alignment*/
  259. };
  260. typedef struct LAPAdrBlock LAPAdrBlock;
  261. typedef struct ATQEntry ATQEntry;
  262. typedef ATQEntry * ATQEntryPtr;
  263. typedef CALLBACK_API_C( long , ATalkTransitionEventProcPtr )(long eventCode, ATQEntryPtr qElem, void *eventParameter);
  264. typedef STACK_UPP_TYPE(ATalkTransitionEventProcPtr) ATalkTransitionEventUPP;
  265. typedef ATalkTransitionEventUPP ATalkTransitionEvent;
  266. struct ATQEntry {
  267. struct ATQEntry * qLink; /*next queue entry*/
  268. short qType; /*queue type*/
  269. ATalkTransitionEventUPP CallAddr; /*your routine descriptor*/
  270. };
  271. /*
  272. Real definition of EntityName is 3 PACKED strings of any length (32 is just an example). No
  273. offests for Asm since each String address must be calculated by adding length byte to last string ptr.
  274. In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte unless they are
  275. only a byte long. So this will generate correct looking interfaces for Pascal and C, but they will not
  276. be the same, which is OK since they are not used.
  277. */
  278. struct EntityName {
  279. Str32Field objStr;
  280. Str32Field typeStr;
  281. Str32Field zoneStr;
  282. };
  283. typedef struct EntityName EntityName;
  284. typedef EntityName * EntityPtr;
  285. struct AddrBlock {
  286. UInt16 aNet;
  287. UInt8 aNode;
  288. UInt8 aSocket;
  289. };
  290. typedef struct AddrBlock AddrBlock;
  291. struct RetransType {
  292. UInt8 retransInterval;
  293. UInt8 retransCount;
  294. };
  295. typedef struct RetransType RetransType;
  296. struct BDSElement {
  297. short buffSize;
  298. void * buffPtr;
  299. short dataSize;
  300. long userBytes;
  301. };
  302. typedef struct BDSElement BDSElement;
  303. typedef BDSElement BDSType[8];
  304. typedef BDSElement * BDSPtr;
  305. typedef char BitMapType;
  306. struct ATLAPRec {
  307. ABCallType abOpcode;
  308. SInt8 filler; /* Filler for proper byte alignment*/
  309. short abResult;
  310. long abUserReference;
  311. LAPAdrBlock lapAddress;
  312. short lapReqCount;
  313. short lapActCount;
  314. void * lapDataPtr;
  315. };
  316. typedef struct ATLAPRec ATLAPRec;
  317. typedef ATLAPRec * ATLAPRecPtr;
  318. typedef ATLAPRecPtr * ATLAPRecHandle;
  319. struct ATDDPRec {
  320. ABCallType abOpcode;
  321. SInt8 filler; /* Filler for proper byte alignment*/
  322. short abResult;
  323. long abUserReference;
  324. short ddpType;
  325. short ddpSocket;
  326. AddrBlock ddpAddress;
  327. short ddpReqCount;
  328. short ddpActCount;
  329. void * ddpDataPtr;
  330. short ddpNodeID;
  331. };
  332. typedef struct ATDDPRec ATDDPRec;
  333. typedef ATDDPRec * ATDDPRecPtr;
  334. typedef ATDDPRecPtr * ATDDPRecHandle;
  335. struct ATNBPRec {
  336. ABCallType abOpcode;
  337. SInt8 filler; /* Filler for proper byte alignment*/
  338. short abResult;
  339. long abUserReference;
  340. EntityPtr nbpEntityPtr;
  341. void * nbpBufPtr;
  342. short nbpBufSize;
  343. short nbpDataField;
  344. AddrBlock nbpAddress;
  345. RetransType nbpRetransmitInfo;
  346. };
  347. typedef struct ATNBPRec ATNBPRec;
  348. typedef ATNBPRec * ATNBPRecPtr;
  349. typedef ATNBPRecPtr * ATNBPRecHandle;
  350. struct ATATPRec {
  351. ABCallType abOpcode;
  352. SInt8 filler1; /* Filler for proper byte alignment*/
  353. short abResult;
  354. long abUserReference;
  355. short atpSocket;
  356. AddrBlock atpAddress;
  357. short atpReqCount;
  358. void * atpDataPtr;
  359. BDSPtr atpRspBDSPtr;
  360. BitMapType atpBitMap;
  361. SInt8 filler2; /* Filler for proper byte alignment*/
  362. short atpTransID;
  363. short atpActCount;
  364. long atpUserData;
  365. Boolean atpXO;
  366. Boolean atpEOM;
  367. short atpTimeOut;
  368. short atpRetries;
  369. short atpNumBufs;
  370. short atpNumRsp;
  371. short atpBDSSize;
  372. long atpRspUData;
  373. void * atpRspBuf;
  374. short atpRspSize;
  375. };
  376. typedef struct ATATPRec ATATPRec;
  377. typedef ATATPRec * ATATPRecPtr;
  378. typedef ATATPRecPtr * ATATPRecHandle;
  379. struct AFPCommandBlock {
  380. UInt8 cmdByte;
  381. UInt8 startEndFlag;
  382. short forkRefNum;
  383. long rwOffset;
  384. long reqCount;
  385. UInt8 newLineFlag;
  386. char newLineChar;
  387. };
  388. typedef struct AFPCommandBlock AFPCommandBlock;
  389. typedef union MPPParamBlock MPPParamBlock;
  390. typedef union ATPParamBlock ATPParamBlock;
  391. typedef union XPPParamBlock XPPParamBlock;
  392. typedef MPPParamBlock * MPPPBPtr;
  393. typedef ATPParamBlock * ATPPBPtr;
  394. typedef XPPParamBlock * XPPParmBlkPtr;
  395. typedef CALLBACK_API_REGISTER68K( void , MPPCompletionProcPtr, (MPPPBPtr thePBptr) );
  396. typedef CALLBACK_API_REGISTER68K( void , ATPCompletionProcPtr, (ATPPBPtr thePBptr) );
  397. typedef CALLBACK_API_REGISTER68K( void , XPPCompletionProcPtr, (XPPParmBlkPtr thePBptr) );
  398. typedef CALLBACK_API_REGISTER68K( void , AttnRoutineProcPtr, (short sessRefnum, short attnBytes) );
  399. typedef REGISTER_UPP_TYPE(MPPCompletionProcPtr) MPPCompletionUPP;
  400. typedef REGISTER_UPP_TYPE(ATPCompletionProcPtr) ATPCompletionUPP;
  401. typedef REGISTER_UPP_TYPE(XPPCompletionProcPtr) XPPCompletionUPP;
  402. typedef REGISTER_UPP_TYPE(AttnRoutineProcPtr) AttnRoutineUPP;
  403. struct WDSElement {
  404. short entryLength;
  405. Ptr entryPtr;
  406. };
  407. typedef struct WDSElement WDSElement;
  408. struct NTElement {
  409. AddrBlock nteAddress; /*network address of entity*/
  410. SInt8 filler;
  411. SInt8 entityData[99]; /*Object, Type & Zone*/
  412. };
  413. typedef struct NTElement NTElement;
  414. struct NamesTableEntry {
  415. Ptr qNext; /*ptr to next NTE*/
  416. NTElement nt;
  417. };
  418. typedef struct NamesTableEntry NamesTableEntry;
  419. typedef CALLBACK_API_REGISTER68K( Boolean , MPPProtocolHandlerProcPtr, (Ptr SCCAddr1, Ptr SCCAddr2, Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr, short numBytesLeftToReadInPacket) );
  420. typedef CALLBACK_API_REGISTER68K( Boolean , DDPSocketListenerProcPtr, (Ptr SCCAddr1, Ptr SCCAddr2, Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr, UInt8 packetDestinationNumber, short numBytesLeftToReadInPacket) );
  421. typedef REGISTER_UPP_TYPE(MPPProtocolHandlerProcPtr) MPPProtocolHandlerUPP;
  422. typedef REGISTER_UPP_TYPE(DDPSocketListenerProcPtr) DDPSocketListenerUPP;
  423. /*
  424. MPPProtocolHandlerProcs and DDPSocketListenerProcs cannot be written
  425. in or called from a high-level language without the help of mixed mode
  426. or assembly glue because they use the following parameter-passing conventions:
  427. typedef Boolean (*MPPProtocolHandlerProcPtr)(Ptr SCCAddr1, Ptr SCCAddr2,
  428. Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr,
  429. short numBytesLeftToReadInPacket);
  430. In:
  431. => SCCAddr1 A0.L
  432. => SCCAddr2 A1.L
  433. => MPPLocalVars A2.L
  434. => nextFreeByteInRHA A3.L
  435. => ReadPacketAndReadRestPtr A4.L
  436. => numBytesLeftToReadInPacket D1.W
  437. Out:
  438. <= Boolean Z bit of CCR
  439. typedef Boolean (*DDPSocketListenerProcPtr)(Ptr SCCAddr1, Ptr SCCAddr2,
  440. Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr,
  441. UInt8 packetDestinationNumber, short numBytesLeftToReadInPacket);
  442. In:
  443. => SCCAddr1 A0.L
  444. => SCCAddr2 A1.L
  445. => MPPLocalVars A2.L
  446. => nextFreeByteInRHA A3.L
  447. => ReadPacketAndReadRestPtr A4.L
  448. => packetDestinationNumber D0.B
  449. => numBytesLeftToReadInPacket D1.W
  450. Out:
  451. <= Boolean Z bit of CCR
  452. */
  453. struct MPPparms {
  454. QElem * qLink; /*next queue entry*/
  455. short qType; /*queue type*/
  456. short ioTrap; /*routine trap*/
  457. Ptr ioCmdAddr; /*routine address*/
  458. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  459. OSErr ioResult; /*result code*/
  460. long userData; /*Command result (ATP user bytes)*/
  461. short reqTID; /*request transaction ID*/
  462. short ioRefNum; /*driver reference number*/
  463. short csCode; /*Call command code*/
  464. };
  465. typedef struct MPPparms MPPparms;
  466. struct LAPparms {
  467. QElem * qLink; /*next queue entry*/
  468. short qType; /*queue type*/
  469. short ioTrap; /*routine trap*/
  470. Ptr ioCmdAddr; /*routine address*/
  471. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  472. OSErr ioResult; /*result code*/
  473. long userData; /*Command result (ATP user bytes)*/
  474. short reqTID; /*request transaction ID*/
  475. short ioRefNum; /*driver reference number*/
  476. short csCode; /*Call command code*/
  477. UInt8 protType; /*ALAP protocol Type */
  478. UInt8 filler;
  479. union {
  480. void * wdsPointer; /*-> write data structure*/
  481. MPPProtocolHandlerUPP handler; /*-> protocol handler routine*/
  482. } u;
  483. };
  484. typedef struct LAPparms LAPparms;
  485. struct DDPparms {
  486. QElem * qLink; /*next queue entry*/
  487. short qType; /*queue type*/
  488. short ioTrap; /*routine trap*/
  489. Ptr ioCmdAddr; /*routine address*/
  490. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  491. OSErr ioResult; /*result code*/
  492. long userData; /*Command result (ATP user bytes)*/
  493. short reqTID; /*request transaction ID*/
  494. short ioRefNum; /*driver reference number*/
  495. short csCode; /*Call command code*/
  496. UInt8 socket; /*socket number */
  497. UInt8 checksumFlag; /*check sum flag */
  498. union {
  499. void * wdsPointer; /*-> write data structure*/
  500. DDPSocketListenerUPP listener; /*->write data structure or -> Listener*/
  501. } u;
  502. };
  503. typedef struct DDPparms DDPparms;
  504. union NBPPtrs {
  505. Ptr ntQElPtr;
  506. Ptr entityPtr;
  507. };
  508. typedef union NBPPtrs NBPPtrs;
  509. union LookupConfirmParams {
  510. UInt8 verifyFlag;
  511. struct {
  512. void * retBuffPtr;
  513. short retBuffSize;
  514. short maxToGet;
  515. short numGotten;
  516. } Lookup;
  517. struct {
  518. AddrBlock confirmAddr;
  519. UInt8 newSocket;
  520. SInt8 filler; /* Filler for proper byte alignment*/
  521. } Confirm;
  522. };
  523. typedef union LookupConfirmParams LookupConfirmParams;
  524. struct NBPparms {
  525. QElem * qLink; /*next queue entry*/
  526. short qType; /*queue type*/
  527. short ioTrap; /*routine trap*/
  528. Ptr ioCmdAddr; /*routine address*/
  529. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  530. OSErr ioResult; /*result code*/
  531. long userData; /*Command result (ATP user bytes)*/
  532. short reqTID; /*request transaction ID*/
  533. short ioRefNum; /*driver reference number*/
  534. short csCode; /*Call command code*/
  535. UInt8 interval; /*retry interval */
  536. UInt8 count; /*retry count */
  537. NBPPtrs nbpPtrs;
  538. LookupConfirmParams parm;
  539. };
  540. typedef struct NBPparms NBPparms;
  541. struct SetSelfparms {
  542. QElem * qLink; /*next queue entry*/
  543. short qType; /*queue type*/
  544. short ioTrap; /*routine trap*/
  545. Ptr ioCmdAddr; /*routine address*/
  546. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  547. OSErr ioResult; /*result code*/
  548. long userData; /*Command result (ATP user bytes)*/
  549. short reqTID; /*request transaction ID*/
  550. short ioRefNum; /*driver reference number*/
  551. short csCode; /*Call command code*/
  552. UInt8 newSelfFlag; /*self-send toggle flag */
  553. UInt8 oldSelfFlag; /*previous self-send state */
  554. };
  555. typedef struct SetSelfparms SetSelfparms;
  556. struct NBPKillparms {
  557. QElem * qLink; /*next queue entry*/
  558. short qType; /*queue type*/
  559. short ioTrap; /*routine trap*/
  560. Ptr ioCmdAddr; /*routine address*/
  561. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  562. OSErr ioResult; /*result code*/
  563. long userData; /*Command result (ATP user bytes)*/
  564. short reqTID; /*request transaction ID*/
  565. short ioRefNum; /*driver reference number*/
  566. short csCode; /*Call command code*/
  567. void * nKillQEl; /*ptr to i/o queue element to cancel */
  568. };
  569. typedef struct NBPKillparms NBPKillparms;
  570. struct GetAppleTalkInfoParm {
  571. QElem * qLink; /*next queue entry*/
  572. short qType; /*queue type*/
  573. short ioTrap; /*routine trap*/
  574. Ptr ioCmdAddr; /*routine address*/
  575. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  576. OSErr ioResult; /*result code*/
  577. long userData; /*Command result (ATP user bytes)*/
  578. short reqTID; /*request transaction ID*/
  579. short ioRefNum; /*driver reference number*/
  580. short csCode; /*Call command code*/
  581. /*max. concurrent NBP requests*/
  582. short version; /*requested info version*/
  583. void * varsPtr; /*pointer to well known MPP vars*/
  584. void * DCEPtr; /*pointer to MPP DCE*/
  585. short portID; /*port number [0..7]*/
  586. long configuration; /*32-bit configuration word*/
  587. short selfSend; /*non zero if SelfSend enabled*/
  588. short netLo; /*low value of network range*/
  589. short netHi; /*high value of network range*/
  590. long ourAdd; /*our 24-bit AppleTalk address*/
  591. long routerAddr; /*24-bit address of (last) router*/
  592. short numOfPHs; /*max. number of protocol handlers*/
  593. short numOfSkts; /*max. number of static sockets*/
  594. short numNBPEs; /*max. concurrent NBP requests*/
  595. void * nTQueue; /*pointer to registered name queue*/
  596. short LAlength; /*length in bytes of data link addr*/
  597. void * linkAddr; /*data link address returned*/
  598. Ptr zoneName; /*zone name returned*/
  599. };
  600. typedef struct GetAppleTalkInfoParm GetAppleTalkInfoParm;
  601. struct ATalkClosePrepParm {
  602. QElem * qLink; /*next queue entry*/
  603. short qType; /*queue type*/
  604. short ioTrap; /*routine trap*/
  605. Ptr ioCmdAddr; /*routine address*/
  606. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  607. OSErr ioResult; /*result code*/
  608. long userData; /*Command result (ATP user bytes)*/
  609. short reqTID; /*request transaction ID*/
  610. short ioRefNum; /*driver reference number*/
  611. short csCode; /*Call command code*/
  612. Ptr appName; /*pointer to application name in buffer*/
  613. };
  614. typedef struct ATalkClosePrepParm ATalkClosePrepParm;
  615. union MPPParamBlock {
  616. MPPparms MPP; /*General MPP parms*/
  617. LAPparms LAP; /*ALAP calls*/
  618. DDPparms DDP; /*DDP calls*/
  619. NBPparms NBP; /*NBP calls*/
  620. SetSelfparms SETSELF;
  621. NBPKillparms NBPKILL;
  622. GetAppleTalkInfoParm GAIINFO;
  623. ATalkClosePrepParm ATALKCLOSE;
  624. };
  625. struct XPPPrmBlk {
  626. QElem * qLink;
  627. short qType;
  628. short ioTrap;
  629. Ptr ioCmdAddr;
  630. XPPCompletionUPP ioCompletion;
  631. OSErr ioResult;
  632. long cmdResult;
  633. short ioVRefNum;
  634. short ioRefNum;
  635. short csCode;
  636. short sessRefnum; /*Offset to session refnum */
  637. UInt8 aspTimeout; /*Timeout for ATP */
  638. UInt8 aspRetry; /*Retry count for ATP */
  639. short cbSize; /*Command block size */
  640. Ptr cbPtr; /*Command block pointer */
  641. short rbSize; /*Reply buffer size */
  642. Ptr rbPtr; /*Reply buffer pointer */
  643. short wdSize; /*Write Data size*/
  644. Ptr wdPtr; /*Write Data pointer*/
  645. UInt8 ccbStart[296]; /*CCB memory allocated for driver afpWrite max size(CCB)=296 all other calls=150*/
  646. };
  647. typedef struct XPPPrmBlk XPPPrmBlk;
  648. struct ASPGetparmsBlk {
  649. QElem * qLink;
  650. short qType;
  651. short ioTrap;
  652. Ptr ioCmdAddr;
  653. XPPCompletionUPP ioCompletion;
  654. OSErr ioResult;
  655. long cmdResult;
  656. short ioVRefNum;
  657. short ioRefNum;
  658. short csCode;
  659. short aspMaxCmdSize; /*For SPGetParms*/
  660. short aspQuantumSize;
  661. short numSesss;
  662. };
  663. typedef struct ASPGetparmsBlk ASPGetparmsBlk;
  664. struct ASPAbortPrm {
  665. QElem * qLink;
  666. short qType;
  667. short ioTrap;
  668. Ptr ioCmdAddr;
  669. XPPCompletionUPP ioCompletion;
  670. OSErr ioResult;
  671. long cmdResult;
  672. short ioVRefNum;
  673. short ioRefNum;
  674. short csCode;
  675. Ptr abortSCBPtr; /*SCB pointer for AbortOS */
  676. };
  677. typedef struct ASPAbortPrm ASPAbortPrm;
  678. struct ASPOpenPrm {
  679. QElem * qLink;
  680. short qType;
  681. short ioTrap;
  682. Ptr ioCmdAddr;
  683. XPPCompletionUPP ioCompletion;
  684. OSErr ioResult;
  685. long cmdResult;
  686. short ioVRefNum;
  687. short ioRefNum;
  688. short csCode;
  689. short sessRefnum; /*Offset to session refnum */
  690. UInt8 aspTimeout; /*Timeout for ATP */
  691. UInt8 aspRetry; /*Retry count for ATP */
  692. AddrBlock serverAddr; /*Server address block */
  693. Ptr scbPointer; /*SCB pointer */
  694. AttnRoutineUPP attnRoutine; /*Attention routine pointer*/
  695. };
  696. typedef struct ASPOpenPrm ASPOpenPrm;
  697. typedef ASPOpenPrm * ASPOpenPrmPtr;
  698. struct AFPLoginPrm {
  699. QElem * qLink;
  700. short qType;
  701. short ioTrap;
  702. Ptr ioCmdAddr;
  703. XPPCompletionUPP ioCompletion;
  704. OSErr ioResult;
  705. long cmdResult;
  706. short ioVRefNum;
  707. short ioRefNum;
  708. short csCode;
  709. short sessRefnum; /*Offset to session refnum */
  710. UInt8 aspTimeout; /*Timeout for ATP */
  711. UInt8 aspRetry; /*Retry count for ATP */
  712. short cbSize; /*Command block size */
  713. void * cbPtr; /*Command block pointer */
  714. short rbSize; /*Reply buffer size */
  715. void * rbPtr; /*Reply buffer pointer */
  716. AddrBlock afpAddrBlock; /*block in AFP login */
  717. void * afpSCBPtr; /*SCB pointer in AFP login */
  718. AttnRoutineUPP afpAttnRoutine; /*routine pointer in AFP login */
  719. UInt8 ccbFill[144]; /*CCB memory allocated for driver Login needs only 150 bytes BUT CCB really starts in the middle of AFPSCBPtr and also clobbers AFPAttnRoutine. */
  720. };
  721. typedef struct AFPLoginPrm AFPLoginPrm;
  722. struct XCallParam {
  723. QElem * qLink;
  724. short qType;
  725. short ioTrap;
  726. Ptr ioCmdAddr;
  727. XPPCompletionUPP ioCompletion;
  728. OSErr ioResult;
  729. long cmdResult;
  730. short ioVRefNum;
  731. short ioRefNum;
  732. short csCode;
  733. short xppSubCode;
  734. UInt8 xppTimeout; /*retry interval (seconds)*/
  735. UInt8 xppRetry; /*retry count*/
  736. short filler1;
  737. void * zipBuffPtr; /*pointer to buffer (must be 578 bytes)*/
  738. short zipNumZones; /*no. of zone names in this response*/
  739. UInt8 zipLastFlag; /*non-zero if no more zones*/
  740. UInt8 filler2; /*filler*/
  741. UInt8 zipInfoField[70]; /*on initial call, set first word to zero*/
  742. };
  743. typedef struct XCallParam XCallParam;
  744. union XPPParamBlock {
  745. XPPPrmBlk XPP;
  746. ASPGetparmsBlk GETPARM;
  747. ASPAbortPrm ABORT;
  748. ASPOpenPrm OPEN;
  749. AFPLoginPrm LOGIN;
  750. XCallParam XCALL;
  751. };
  752. struct ATPparms {
  753. QElem * qLink; /*next queue entry*/
  754. short qType; /*queue type*/
  755. short ioTrap; /*routine trap*/
  756. Ptr ioCmdAddr; /*routine address*/
  757. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  758. OSErr ioResult; /*result code*/
  759. long userData; /*Command result (ATP user bytes)*/
  760. short reqTID; /*request transaction ID*/
  761. short ioRefNum; /*driver reference number*/
  762. short csCode; /*Call command code*/
  763. UInt8 atpSocket; /*currbitmap for requests or ATP socket number*/
  764. UInt8 atpFlags; /*control information*/
  765. AddrBlock addrBlock; /*source/dest. socket address*/
  766. short reqLength; /*request/response length*/
  767. void * reqPointer; /*->request/response Data*/
  768. void * bdsPointer; /*->response BDS */
  769. };
  770. typedef struct ATPparms ATPparms;
  771. struct SendReqparms {
  772. QElem * qLink; /*next queue entry*/
  773. short qType; /*queue type*/
  774. short ioTrap; /*routine trap*/
  775. Ptr ioCmdAddr; /*routine address*/
  776. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  777. OSErr ioResult; /*result code*/
  778. long userData; /*Command result (ATP user bytes)*/
  779. short reqTID; /*request transaction ID*/
  780. short ioRefNum; /*driver reference number*/
  781. short csCode; /*Call command code*/
  782. UInt8 atpSocket; /*currbitmap for requests or ATP socket number*/
  783. UInt8 atpFlags; /*control information*/
  784. AddrBlock addrBlock; /*source/dest. socket address*/
  785. short reqLength; /*request/response length*/
  786. void * reqPointer; /*->request/response Data*/
  787. void * bdsPointer; /*->response BDS */
  788. UInt8 numOfBuffs; /*numOfBuffs */
  789. UInt8 timeOutVal; /*timeout interval */
  790. UInt8 numOfResps; /*number of responses actually received */
  791. UInt8 retryCount; /*number of retries */
  792. short intBuff; /*used internally for NSendRequest */
  793. UInt8 TRelTime; /*TRelease time for extended send request */
  794. SInt8 filler0;
  795. };
  796. typedef struct SendReqparms SendReqparms;
  797. struct ATPmisc1 {
  798. QElem * qLink; /*next queue entry*/
  799. short qType; /*queue type*/
  800. short ioTrap; /*routine trap*/
  801. Ptr ioCmdAddr; /*routine address*/
  802. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  803. OSErr ioResult; /*result code*/
  804. long userData; /*Command result (ATP user bytes)*/
  805. short reqTID; /*request transaction ID*/
  806. short ioRefNum; /*driver reference number*/
  807. short csCode; /*Call command code*/
  808. UInt8 atpSocket; /*currbitmap for requests or ATP socket number*/
  809. UInt8 atpFlags; /*control information*/
  810. AddrBlock addrBlock; /*source/dest. socket address*/
  811. short reqLength; /*request/response length*/
  812. void * reqPointer; /*->request/response Data*/
  813. void * bdsPointer; /*->response BDS */
  814. union {
  815. UInt8 bitMap; /*bitmap received */
  816. UInt8 numOfBuffs; /*number of responses being sent*/
  817. UInt8 rspNum; /*sequence number*/
  818. } u;
  819. };
  820. typedef struct ATPmisc1 ATPmisc1;
  821. struct ATPmisc2 {
  822. QElem * qLink; /*next queue entry*/
  823. short qType; /*queue type*/
  824. short ioTrap; /*routine trap*/
  825. Ptr ioCmdAddr; /*routine address*/
  826. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  827. OSErr ioResult; /*result code*/
  828. long userData; /*Command result (ATP user bytes)*/
  829. short reqTID; /*request transaction ID*/
  830. short ioRefNum; /*driver reference number*/
  831. short csCode; /*Call command code*/
  832. UInt8 atpSocket; /*currbitmap for requests or ATP socket number*/
  833. UInt8 atpFlags; /*control information*/
  834. AddrBlock addrBlock; /*source/dest. socket address*/
  835. short reqLength; /*request/response length*/
  836. void * reqPointer; /*->request/response Data*/
  837. void * bdsPointer; /*->response BDS */
  838. UInt8 filler;
  839. UInt8 bdsSize; /*number of BDS elements */
  840. short transID; /*transaction ID recd. */
  841. };
  842. typedef struct ATPmisc2 ATPmisc2;
  843. struct Killparms {
  844. QElem * qLink; /*next queue entry*/
  845. short qType; /*queue type*/
  846. short ioTrap; /*routine trap*/
  847. Ptr ioCmdAddr; /*routine address*/
  848. ATPCompletionUPP ioCompletion; /*ATPCompletionUPP or MPPCompletionUPP*/
  849. OSErr ioResult; /*result code*/
  850. long userData; /*Command result (ATP user bytes)*/
  851. short reqTID; /*request transaction ID*/
  852. short ioRefNum; /*driver reference number*/
  853. short csCode; /*Call command code*/
  854. UInt8 atpSocket; /*currbitmap for requests or ATP socket number*/
  855. UInt8 atpFlags; /*control information*/
  856. AddrBlock addrBlock; /*source/dest. socket address*/
  857. short reqLength; /*request/response length*/
  858. void * reqPointer; /*->request/response Data*/
  859. void * bdsPointer; /*->response BDS */
  860. void * aKillQEl; /*ptr to i/o queue element to cancel*/
  861. };
  862. typedef struct Killparms Killparms;
  863. union ATPParamBlock {
  864. ATPparms ATP; /*General ATP parms*/
  865. SendReqparms SREQ; /*sendrequest parms*/
  866. ATPmisc1 OTH1; /*and a few others*/
  867. ATPmisc2 OTH2; /*and a few others*/
  868. Killparms KILL; /*and a few others*/
  869. };
  870. #if CALL_NOT_IN_CARBON
  871. /*
  872. * NewATalkTransitionEventUPP()
  873. *
  874. * Availability:
  875. * Non-Carbon CFM: available as macro/inline
  876. * CarbonLib: not available
  877. * Mac OS X: not available
  878. */
  879. EXTERN_API_C( ATalkTransitionEventUPP )
  880. NewATalkTransitionEventUPP(ATalkTransitionEventProcPtr userRoutine);
  881. #if !OPAQUE_UPP_TYPES
  882. enum { uppATalkTransitionEventProcInfo = 0x00000FF1 }; /* 4_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  883. #ifdef __cplusplus
  884. inline DEFINE_API_C(ATalkTransitionEventUPP) NewATalkTransitionEventUPP(ATalkTransitionEventProcPtr userRoutine) { return (ATalkTransitionEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppATalkTransitionEventProcInfo, GetCurrentArchitecture()); }
  885. #else
  886. #define NewATalkTransitionEventUPP(userRoutine) (ATalkTransitionEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppATalkTransitionEventProcInfo, GetCurrentArchitecture())
  887. #endif
  888. #endif
  889. /*
  890. * NewMPPCompletionUPP()
  891. *
  892. * Availability:
  893. * Non-Carbon CFM: available as macro/inline
  894. * CarbonLib: not available
  895. * Mac OS X: not available
  896. */
  897. EXTERN_API_C( MPPCompletionUPP )
  898. NewMPPCompletionUPP(MPPCompletionProcPtr userRoutine);
  899. #if !OPAQUE_UPP_TYPES
  900. enum { uppMPPCompletionProcInfo = 0x00009802 }; /* register no_return_value Func(4_bytes:A0) */
  901. #ifdef __cplusplus
  902. inline DEFINE_API_C(MPPCompletionUPP) NewMPPCompletionUPP(MPPCompletionProcPtr userRoutine) { return (MPPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMPPCompletionProcInfo, GetCurrentArchitecture()); }
  903. #else
  904. #define NewMPPCompletionUPP(userRoutine) (MPPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMPPCompletionProcInfo, GetCurrentArchitecture())
  905. #endif
  906. #endif
  907. /*
  908. * NewATPCompletionUPP()
  909. *
  910. * Availability:
  911. * Non-Carbon CFM: available as macro/inline
  912. * CarbonLib: not available
  913. * Mac OS X: not available
  914. */
  915. EXTERN_API_C( ATPCompletionUPP )
  916. NewATPCompletionUPP(ATPCompletionProcPtr userRoutine);
  917. #if !OPAQUE_UPP_TYPES
  918. enum { uppATPCompletionProcInfo = 0x00009802 }; /* register no_return_value Func(4_bytes:A0) */
  919. #ifdef __cplusplus
  920. inline DEFINE_API_C(ATPCompletionUPP) NewATPCompletionUPP(ATPCompletionProcPtr userRoutine) { return (ATPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppATPCompletionProcInfo, GetCurrentArchitecture()); }
  921. #else
  922. #define NewATPCompletionUPP(userRoutine) (ATPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppATPCompletionProcInfo, GetCurrentArchitecture())
  923. #endif
  924. #endif
  925. /*
  926. * NewXPPCompletionUPP()
  927. *
  928. * Availability:
  929. * Non-Carbon CFM: available as macro/inline
  930. * CarbonLib: not available
  931. * Mac OS X: not available
  932. */
  933. EXTERN_API_C( XPPCompletionUPP )
  934. NewXPPCompletionUPP(XPPCompletionProcPtr userRoutine);
  935. #if !OPAQUE_UPP_TYPES
  936. enum { uppXPPCompletionProcInfo = 0x00009802 }; /* register no_return_value Func(4_bytes:A0) */
  937. #ifdef __cplusplus
  938. inline DEFINE_API_C(XPPCompletionUPP) NewXPPCompletionUPP(XPPCompletionProcPtr userRoutine) { return (XPPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppXPPCompletionProcInfo, GetCurrentArchitecture()); }
  939. #else
  940. #define NewXPPCompletionUPP(userRoutine) (XPPCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppXPPCompletionProcInfo, GetCurrentArchitecture())
  941. #endif
  942. #endif
  943. /*
  944. * NewAttnRoutineUPP()
  945. *
  946. * Availability:
  947. * Non-Carbon CFM: available as macro/inline
  948. * CarbonLib: not available
  949. * Mac OS X: not available
  950. */
  951. EXTERN_API_C( AttnRoutineUPP )
  952. NewAttnRoutineUPP(AttnRoutineProcPtr userRoutine);
  953. #if !OPAQUE_UPP_TYPES
  954. enum { uppAttnRoutineProcInfo = 0x00061002 }; /* register no_return_value Func(2_bytes:D0, 2_bytes:D1) */
  955. #ifdef __cplusplus
  956. inline DEFINE_API_C(AttnRoutineUPP) NewAttnRoutineUPP(AttnRoutineProcPtr userRoutine) { return (AttnRoutineUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppAttnRoutineProcInfo, GetCurrentArchitecture()); }
  957. #else
  958. #define NewAttnRoutineUPP(userRoutine) (AttnRoutineUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppAttnRoutineProcInfo, GetCurrentArchitecture())
  959. #endif
  960. #endif
  961. /*
  962. * NewMPPProtocolHandlerUPP()
  963. *
  964. * Availability:
  965. * Non-Carbon CFM: available as macro/inline
  966. * CarbonLib: not available
  967. * Mac OS X: not available
  968. */
  969. EXTERN_API_C( MPPProtocolHandlerUPP )
  970. NewMPPProtocolHandlerUPP(MPPProtocolHandlerProcPtr userRoutine);
  971. #if !OPAQUE_UPP_TYPES
  972. enum { uppMPPProtocolHandlerProcInfo = 0x0000007F }; /* SPECIAL_CASE_PROCINFO(7) */
  973. #ifdef __cplusplus
  974. inline DEFINE_API_C(MPPProtocolHandlerUPP) NewMPPProtocolHandlerUPP(MPPProtocolHandlerProcPtr userRoutine) { return (MPPProtocolHandlerUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMPPProtocolHandlerProcInfo, GetCurrentArchitecture()); }
  975. #else
  976. #define NewMPPProtocolHandlerUPP(userRoutine) (MPPProtocolHandlerUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMPPProtocolHandlerProcInfo, GetCurrentArchitecture())
  977. #endif
  978. #endif
  979. /*
  980. * NewDDPSocketListenerUPP()
  981. *
  982. * Availability:
  983. * Non-Carbon CFM: available as macro/inline
  984. * CarbonLib: not available
  985. * Mac OS X: not available
  986. */
  987. EXTERN_API_C( DDPSocketListenerUPP )
  988. NewDDPSocketListenerUPP(DDPSocketListenerProcPtr userRoutine);
  989. #if !OPAQUE_UPP_TYPES
  990. enum { uppDDPSocketListenerProcInfo = 0x0000008F }; /* SPECIAL_CASE_PROCINFO(8) */
  991. #ifdef __cplusplus
  992. inline DEFINE_API_C(DDPSocketListenerUPP) NewDDPSocketListenerUPP(DDPSocketListenerProcPtr userRoutine) { return (DDPSocketListenerUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDDPSocketListenerProcInfo, GetCurrentArchitecture()); }
  993. #else
  994. #define NewDDPSocketListenerUPP(userRoutine) (DDPSocketListenerUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDDPSocketListenerProcInfo, GetCurrentArchitecture())
  995. #endif
  996. #endif
  997. /*
  998. * DisposeATalkTransitionEventUPP()
  999. *
  1000. * Availability:
  1001. * Non-Carbon CFM: available as macro/inline
  1002. * CarbonLib: not available
  1003. * Mac OS X: not available
  1004. */
  1005. EXTERN_API_C( void )
  1006. DisposeATalkTransitionEventUPP(ATalkTransitionEventUPP userUPP);
  1007. #if !OPAQUE_UPP_TYPES
  1008. #ifdef __cplusplus
  1009. inline DEFINE_API_C(void) DisposeATalkTransitionEventUPP(ATalkTransitionEventUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1010. #else
  1011. #define DisposeATalkTransitionEventUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1012. #endif
  1013. #endif
  1014. /*
  1015. * DisposeMPPCompletionUPP()
  1016. *
  1017. * Availability:
  1018. * Non-Carbon CFM: available as macro/inline
  1019. * CarbonLib: not available
  1020. * Mac OS X: not available
  1021. */
  1022. EXTERN_API_C( void )
  1023. DisposeMPPCompletionUPP(MPPCompletionUPP userUPP);
  1024. #if !OPAQUE_UPP_TYPES
  1025. #ifdef __cplusplus
  1026. inline DEFINE_API_C(void) DisposeMPPCompletionUPP(MPPCompletionUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1027. #else
  1028. #define DisposeMPPCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1029. #endif
  1030. #endif
  1031. /*
  1032. * DisposeATPCompletionUPP()
  1033. *
  1034. * Availability:
  1035. * Non-Carbon CFM: available as macro/inline
  1036. * CarbonLib: not available
  1037. * Mac OS X: not available
  1038. */
  1039. EXTERN_API_C( void )
  1040. DisposeATPCompletionUPP(ATPCompletionUPP userUPP);
  1041. #if !OPAQUE_UPP_TYPES
  1042. #ifdef __cplusplus
  1043. inline DEFINE_API_C(void) DisposeATPCompletionUPP(ATPCompletionUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1044. #else
  1045. #define DisposeATPCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1046. #endif
  1047. #endif
  1048. /*
  1049. * DisposeXPPCompletionUPP()
  1050. *
  1051. * Availability:
  1052. * Non-Carbon CFM: available as macro/inline
  1053. * CarbonLib: not available
  1054. * Mac OS X: not available
  1055. */
  1056. EXTERN_API_C( void )
  1057. DisposeXPPCompletionUPP(XPPCompletionUPP userUPP);
  1058. #if !OPAQUE_UPP_TYPES
  1059. #ifdef __cplusplus
  1060. inline DEFINE_API_C(void) DisposeXPPCompletionUPP(XPPCompletionUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1061. #else
  1062. #define DisposeXPPCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1063. #endif
  1064. #endif
  1065. /*
  1066. * DisposeAttnRoutineUPP()
  1067. *
  1068. * Availability:
  1069. * Non-Carbon CFM: available as macro/inline
  1070. * CarbonLib: not available
  1071. * Mac OS X: not available
  1072. */
  1073. EXTERN_API_C( void )
  1074. DisposeAttnRoutineUPP(AttnRoutineUPP userUPP);
  1075. #if !OPAQUE_UPP_TYPES
  1076. #ifdef __cplusplus
  1077. inline DEFINE_API_C(void) DisposeAttnRoutineUPP(AttnRoutineUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1078. #else
  1079. #define DisposeAttnRoutineUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1080. #endif
  1081. #endif
  1082. /*
  1083. * DisposeMPPProtocolHandlerUPP()
  1084. *
  1085. * Availability:
  1086. * Non-Carbon CFM: available as macro/inline
  1087. * CarbonLib: not available
  1088. * Mac OS X: not available
  1089. */
  1090. EXTERN_API_C( void )
  1091. DisposeMPPProtocolHandlerUPP(MPPProtocolHandlerUPP userUPP);
  1092. #if !OPAQUE_UPP_TYPES
  1093. #ifdef __cplusplus
  1094. inline DEFINE_API_C(void) DisposeMPPProtocolHandlerUPP(MPPProtocolHandlerUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1095. #else
  1096. #define DisposeMPPProtocolHandlerUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1097. #endif
  1098. #endif
  1099. /*
  1100. * DisposeDDPSocketListenerUPP()
  1101. *
  1102. * Availability:
  1103. * Non-Carbon CFM: available as macro/inline
  1104. * CarbonLib: not available
  1105. * Mac OS X: not available
  1106. */
  1107. EXTERN_API_C( void )
  1108. DisposeDDPSocketListenerUPP(DDPSocketListenerUPP userUPP);
  1109. #if !OPAQUE_UPP_TYPES
  1110. #ifdef __cplusplus
  1111. inline DEFINE_API_C(void) DisposeDDPSocketListenerUPP(DDPSocketListenerUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  1112. #else
  1113. #define DisposeDDPSocketListenerUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  1114. #endif
  1115. #endif
  1116. /*
  1117. * InvokeATalkTransitionEventUPP()
  1118. *
  1119. * Availability:
  1120. * Non-Carbon CFM: available as macro/inline
  1121. * CarbonLib: not available
  1122. * Mac OS X: not available
  1123. */
  1124. EXTERN_API_C( long )
  1125. InvokeATalkTransitionEventUPP(
  1126. long eventCode,
  1127. ATQEntryPtr qElem,
  1128. void * eventParameter,
  1129. ATalkTransitionEventUPP userUPP);
  1130. #if !OPAQUE_UPP_TYPES
  1131. #ifdef __cplusplus
  1132. inline DEFINE_API_C(long) InvokeATalkTransitionEventUPP(long eventCode, ATQEntryPtr qElem, void * eventParameter, ATalkTransitionEventUPP userUPP) { return (long)CALL_THREE_PARAMETER_UPP(userUPP, uppATalkTransitionEventProcInfo, eventCode, qElem, eventParameter); }
  1133. #else
  1134. #define InvokeATalkTransitionEventUPP(eventCode, qElem, eventParameter, userUPP) (long)CALL_THREE_PARAMETER_UPP((userUPP), uppATalkTransitionEventProcInfo, (eventCode), (qElem), (eventParameter))
  1135. #endif
  1136. #endif
  1137. /*
  1138. * InvokeMPPCompletionUPP()
  1139. *
  1140. * Availability:
  1141. * Non-Carbon CFM: available as macro/inline
  1142. * CarbonLib: not available
  1143. * Mac OS X: not available
  1144. */
  1145. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  1146. #pragma parameter InvokeMPPCompletionUPP(__A0, __A1)
  1147. #endif
  1148. EXTERN_API_C( void )
  1149. InvokeMPPCompletionUPP(
  1150. MPPPBPtr thePBptr,
  1151. MPPCompletionUPP userUPP) ONEWORDINLINE(0x4E91);
  1152. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1153. #ifdef __cplusplus
  1154. inline DEFINE_API_C(void) InvokeMPPCompletionUPP(MPPPBPtr thePBptr, MPPCompletionUPP userUPP) { CALL_ONE_PARAMETER_UPP(userUPP, uppMPPCompletionProcInfo, thePBptr); }
  1155. #else
  1156. #define InvokeMPPCompletionUPP(thePBptr, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppMPPCompletionProcInfo, (thePBptr))
  1157. #endif
  1158. #endif
  1159. /*
  1160. * InvokeATPCompletionUPP()
  1161. *
  1162. * Availability:
  1163. * Non-Carbon CFM: available as macro/inline
  1164. * CarbonLib: not available
  1165. * Mac OS X: not available
  1166. */
  1167. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  1168. #pragma parameter InvokeATPCompletionUPP(__A0, __A1)
  1169. #endif
  1170. EXTERN_API_C( void )
  1171. InvokeATPCompletionUPP(
  1172. ATPPBPtr thePBptr,
  1173. ATPCompletionUPP userUPP) ONEWORDINLINE(0x4E91);
  1174. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1175. #ifdef __cplusplus
  1176. inline DEFINE_API_C(void) InvokeATPCompletionUPP(ATPPBPtr thePBptr, ATPCompletionUPP userUPP) { CALL_ONE_PARAMETER_UPP(userUPP, uppATPCompletionProcInfo, thePBptr); }
  1177. #else
  1178. #define InvokeATPCompletionUPP(thePBptr, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppATPCompletionProcInfo, (thePBptr))
  1179. #endif
  1180. #endif
  1181. /*
  1182. * InvokeXPPCompletionUPP()
  1183. *
  1184. * Availability:
  1185. * Non-Carbon CFM: available as macro/inline
  1186. * CarbonLib: not available
  1187. * Mac OS X: not available
  1188. */
  1189. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  1190. #pragma parameter InvokeXPPCompletionUPP(__A0, __A1)
  1191. #endif
  1192. EXTERN_API_C( void )
  1193. InvokeXPPCompletionUPP(
  1194. XPPParmBlkPtr thePBptr,
  1195. XPPCompletionUPP userUPP) ONEWORDINLINE(0x4E91);
  1196. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1197. #ifdef __cplusplus
  1198. inline DEFINE_API_C(void) InvokeXPPCompletionUPP(XPPParmBlkPtr thePBptr, XPPCompletionUPP userUPP) { CALL_ONE_PARAMETER_UPP(userUPP, uppXPPCompletionProcInfo, thePBptr); }
  1199. #else
  1200. #define InvokeXPPCompletionUPP(thePBptr, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppXPPCompletionProcInfo, (thePBptr))
  1201. #endif
  1202. #endif
  1203. /*
  1204. * InvokeAttnRoutineUPP()
  1205. *
  1206. * Availability:
  1207. * Non-Carbon CFM: available as macro/inline
  1208. * CarbonLib: not available
  1209. * Mac OS X: not available
  1210. */
  1211. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  1212. #pragma parameter InvokeAttnRoutineUPP(__D0, __D1, __A0)
  1213. #endif
  1214. EXTERN_API_C( void )
  1215. InvokeAttnRoutineUPP(
  1216. short sessRefnum,
  1217. short attnBytes,
  1218. AttnRoutineUPP userUPP) ONEWORDINLINE(0x4E90);
  1219. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1220. #ifdef __cplusplus
  1221. inline DEFINE_API_C(void) InvokeAttnRoutineUPP(short sessRefnum, short attnBytes, AttnRoutineUPP userUPP) { CALL_TWO_PARAMETER_UPP(userUPP, uppAttnRoutineProcInfo, sessRefnum, attnBytes); }
  1222. #else
  1223. #define InvokeAttnRoutineUPP(sessRefnum, attnBytes, userUPP) CALL_TWO_PARAMETER_UPP((userUPP), uppAttnRoutineProcInfo, (sessRefnum), (attnBytes))
  1224. #endif
  1225. #endif
  1226. /*
  1227. * InvokeMPPProtocolHandlerUPP()
  1228. *
  1229. * Availability:
  1230. * Non-Carbon CFM: available as macro/inline
  1231. * CarbonLib: not available
  1232. * Mac OS X: not available
  1233. */
  1234. EXTERN_API_C( Boolean )
  1235. InvokeMPPProtocolHandlerUPP(
  1236. Ptr SCCAddr1,
  1237. Ptr SCCAddr2,
  1238. Ptr MPPLocalVars,
  1239. Ptr nextFreeByteInRHA,
  1240. Ptr ReadPacketAndReadRestPtr,
  1241. short numBytesLeftToReadInPacket,
  1242. MPPProtocolHandlerUPP userUPP);
  1243. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1244. #ifdef __cplusplus
  1245. inline DEFINE_API_C(Boolean) InvokeMPPProtocolHandlerUPP(Ptr SCCAddr1, Ptr SCCAddr2, Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr, short numBytesLeftToReadInPacket, MPPProtocolHandlerUPP userUPP) { return (Boolean)CALL_SIX_PARAMETER_UPP(userUPP, uppMPPProtocolHandlerProcInfo, SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, numBytesLeftToReadInPacket); }
  1246. #else
  1247. #define InvokeMPPProtocolHandlerUPP(SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, numBytesLeftToReadInPacket, userUPP) (Boolean)CALL_SIX_PARAMETER_UPP((userUPP), uppMPPProtocolHandlerProcInfo, (SCCAddr1), (SCCAddr2), (MPPLocalVars), (nextFreeByteInRHA), (ReadPacketAndReadRestPtr), (numBytesLeftToReadInPacket))
  1248. #endif
  1249. #endif
  1250. /*
  1251. * InvokeDDPSocketListenerUPP()
  1252. *
  1253. * Availability:
  1254. * Non-Carbon CFM: available as macro/inline
  1255. * CarbonLib: not available
  1256. * Mac OS X: not available
  1257. */
  1258. EXTERN_API_C( Boolean )
  1259. InvokeDDPSocketListenerUPP(
  1260. Ptr SCCAddr1,
  1261. Ptr SCCAddr2,
  1262. Ptr MPPLocalVars,
  1263. Ptr nextFreeByteInRHA,
  1264. Ptr ReadPacketAndReadRestPtr,
  1265. UInt8 packetDestinationNumber,
  1266. short numBytesLeftToReadInPacket,
  1267. DDPSocketListenerUPP userUPP);
  1268. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  1269. #ifdef __cplusplus
  1270. inline DEFINE_API_C(Boolean) InvokeDDPSocketListenerUPP(Ptr SCCAddr1, Ptr SCCAddr2, Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr, UInt8 packetDestinationNumber, short numBytesLeftToReadInPacket, DDPSocketListenerUPP userUPP) { return (Boolean)CALL_SEVEN_PARAMETER_UPP(userUPP, uppDDPSocketListenerProcInfo, SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, packetDestinationNumber, numBytesLeftToReadInPacket); }
  1271. #else
  1272. #define InvokeDDPSocketListenerUPP(SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, packetDestinationNumber, numBytesLeftToReadInPacket, userUPP) (Boolean)CALL_SEVEN_PARAMETER_UPP((userUPP), uppDDPSocketListenerProcInfo, (SCCAddr1), (SCCAddr2), (MPPLocalVars), (nextFreeByteInRHA), (ReadPacketAndReadRestPtr), (packetDestinationNumber), (numBytesLeftToReadInPacket))
  1273. #endif
  1274. #endif
  1275. #endif /* CALL_NOT_IN_CARBON */
  1276. #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
  1277. /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
  1278. #define NewATalkTransitionEventProc(userRoutine) NewATalkTransitionEventUPP(userRoutine)
  1279. #define NewMPPCompletionProc(userRoutine) NewMPPCompletionUPP(userRoutine)
  1280. #define NewATPCompletionProc(userRoutine) NewATPCompletionUPP(userRoutine)
  1281. #define NewXPPCompletionProc(userRoutine) NewXPPCompletionUPP(userRoutine)
  1282. #define NewAttnRoutineProc(userRoutine) NewAttnRoutineUPP(userRoutine)
  1283. #define NewMPPProtocolHandlerProc(userRoutine) NewMPPProtocolHandlerUPP(userRoutine)
  1284. #define NewDDPSocketListenerProc(userRoutine) NewDDPSocketListenerUPP(userRoutine)
  1285. #define CallATalkTransitionEventProc(userRoutine, eventCode, qElem, eventParameter) InvokeATalkTransitionEventUPP(eventCode, qElem, eventParameter, userRoutine)
  1286. #define CallMPPCompletionProc(userRoutine, thePBptr) InvokeMPPCompletionUPP(thePBptr, userRoutine)
  1287. #define CallATPCompletionProc(userRoutine, thePBptr) InvokeATPCompletionUPP(thePBptr, userRoutine)
  1288. #define CallXPPCompletionProc(userRoutine, thePBptr) InvokeXPPCompletionUPP(thePBptr, userRoutine)
  1289. #define CallAttnRoutineProc(userRoutine, sessRefnum, attnBytes) InvokeAttnRoutineUPP(sessRefnum, attnBytes, userRoutine)
  1290. #define CallMPPProtocolHandlerProc(userRoutine, SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, numBytesLeftToReadInPacket) InvokeMPPProtocolHandlerUPP(SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, numBytesLeftToReadInPacket, userRoutine)
  1291. #define CallDDPSocketListenerProc(userRoutine, SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, packetDestinationNumber, numBytesLeftToReadInPacket) InvokeDDPSocketListenerUPP(SCCAddr1, SCCAddr2, MPPLocalVars, nextFreeByteInRHA, ReadPacketAndReadRestPtr, packetDestinationNumber, numBytesLeftToReadInPacket, userRoutine)
  1292. #endif /* CALL_NOT_IN_CARBON */
  1293. #if CALL_NOT_IN_CARBON
  1294. /*
  1295. * OpenXPP()
  1296. *
  1297. * Availability:
  1298. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1299. * CarbonLib: not available
  1300. * Mac OS X: not available
  1301. */
  1302. EXTERN_API( OSErr )
  1303. OpenXPP(short * xppRefnum);
  1304. /*
  1305. * ASPOpenSession()
  1306. *
  1307. * Availability:
  1308. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1309. * CarbonLib: not available
  1310. * Mac OS X: not available
  1311. */
  1312. EXTERN_API( OSErr )
  1313. ASPOpenSession(
  1314. XPPParmBlkPtr thePBptr,
  1315. Boolean async);
  1316. /*
  1317. * ASPCloseSession()
  1318. *
  1319. * Availability:
  1320. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1321. * CarbonLib: not available
  1322. * Mac OS X: not available
  1323. */
  1324. EXTERN_API( OSErr )
  1325. ASPCloseSession(
  1326. XPPParmBlkPtr thePBptr,
  1327. Boolean async);
  1328. /*
  1329. * ASPAbortOS()
  1330. *
  1331. * Availability:
  1332. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1333. * CarbonLib: not available
  1334. * Mac OS X: not available
  1335. */
  1336. EXTERN_API( OSErr )
  1337. ASPAbortOS(
  1338. XPPParmBlkPtr thePBptr,
  1339. Boolean async);
  1340. /*
  1341. * ASPGetParms()
  1342. *
  1343. * Availability:
  1344. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1345. * CarbonLib: not available
  1346. * Mac OS X: not available
  1347. */
  1348. EXTERN_API( OSErr )
  1349. ASPGetParms(
  1350. XPPParmBlkPtr thePBptr,
  1351. Boolean async);
  1352. /*
  1353. * ASPCloseAll()
  1354. *
  1355. * Availability:
  1356. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1357. * CarbonLib: not available
  1358. * Mac OS X: not available
  1359. */
  1360. EXTERN_API( OSErr )
  1361. ASPCloseAll(
  1362. XPPParmBlkPtr thePBptr,
  1363. Boolean async);
  1364. /*
  1365. * ASPUserWrite()
  1366. *
  1367. * Availability:
  1368. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1369. * CarbonLib: not available
  1370. * Mac OS X: not available
  1371. */
  1372. EXTERN_API( OSErr )
  1373. ASPUserWrite(
  1374. XPPParmBlkPtr thePBptr,
  1375. Boolean async);
  1376. /*
  1377. * ASPUserCommand()
  1378. *
  1379. * Availability:
  1380. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1381. * CarbonLib: not available
  1382. * Mac OS X: not available
  1383. */
  1384. EXTERN_API( OSErr )
  1385. ASPUserCommand(
  1386. XPPParmBlkPtr thePBptr,
  1387. Boolean async);
  1388. /*
  1389. * ASPGetStatus()
  1390. *
  1391. * Availability:
  1392. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1393. * CarbonLib: not available
  1394. * Mac OS X: not available
  1395. */
  1396. EXTERN_API( OSErr )
  1397. ASPGetStatus(
  1398. XPPParmBlkPtr thePBptr,
  1399. Boolean async);
  1400. #define ASPGetStatusSync(paramBlock) ASPGetStatus((paramBlock), false)
  1401. /*
  1402. * AFPCommand()
  1403. *
  1404. * Availability:
  1405. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1406. * CarbonLib: not available
  1407. * Mac OS X: not available
  1408. */
  1409. EXTERN_API( OSErr )
  1410. AFPCommand(
  1411. XPPParmBlkPtr thePBptr,
  1412. Boolean async);
  1413. /*
  1414. * GetLocalZones()
  1415. *
  1416. * Availability:
  1417. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1418. * CarbonLib: not available
  1419. * Mac OS X: not available
  1420. */
  1421. EXTERN_API( OSErr )
  1422. GetLocalZones(
  1423. XPPParmBlkPtr thePBptr,
  1424. Boolean async);
  1425. /*
  1426. * GetZoneList()
  1427. *
  1428. * Availability:
  1429. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1430. * CarbonLib: not available
  1431. * Mac OS X: not available
  1432. */
  1433. EXTERN_API( OSErr )
  1434. GetZoneList(
  1435. XPPParmBlkPtr thePBptr,
  1436. Boolean async);
  1437. /*
  1438. * GetMyZone()
  1439. *
  1440. * Availability:
  1441. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1442. * CarbonLib: not available
  1443. * Mac OS X: not available
  1444. */
  1445. EXTERN_API( OSErr )
  1446. GetMyZone(
  1447. XPPParmBlkPtr thePBptr,
  1448. Boolean async);
  1449. /*
  1450. * PAttachPH()
  1451. *
  1452. * Availability:
  1453. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1454. * CarbonLib: not available
  1455. * Mac OS X: not available
  1456. */
  1457. EXTERN_API( OSErr )
  1458. PAttachPH(
  1459. MPPPBPtr thePBptr,
  1460. Boolean async);
  1461. /*
  1462. * PDetachPH()
  1463. *
  1464. * Availability:
  1465. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1466. * CarbonLib: not available
  1467. * Mac OS X: not available
  1468. */
  1469. EXTERN_API( OSErr )
  1470. PDetachPH(
  1471. MPPPBPtr thePBptr,
  1472. Boolean async);
  1473. /*
  1474. * PWriteLAP()
  1475. *
  1476. * Availability:
  1477. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1478. * CarbonLib: not available
  1479. * Mac OS X: not available
  1480. */
  1481. EXTERN_API( OSErr )
  1482. PWriteLAP(
  1483. MPPPBPtr thePBptr,
  1484. Boolean async);
  1485. /*
  1486. * POpenSkt()
  1487. *
  1488. * Availability:
  1489. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1490. * CarbonLib: not available
  1491. * Mac OS X: not available
  1492. */
  1493. EXTERN_API( OSErr )
  1494. POpenSkt(
  1495. MPPPBPtr thePBptr,
  1496. Boolean async);
  1497. /*
  1498. * PCloseSkt()
  1499. *
  1500. * Availability:
  1501. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1502. * CarbonLib: not available
  1503. * Mac OS X: not available
  1504. */
  1505. EXTERN_API( OSErr )
  1506. PCloseSkt(
  1507. MPPPBPtr thePBptr,
  1508. Boolean async);
  1509. /*
  1510. * PWriteDDP()
  1511. *
  1512. * Availability:
  1513. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1514. * CarbonLib: not available
  1515. * Mac OS X: not available
  1516. */
  1517. EXTERN_API( OSErr )
  1518. PWriteDDP(
  1519. MPPPBPtr thePBptr,
  1520. Boolean async);
  1521. /*
  1522. * PRegisterName()
  1523. *
  1524. * Availability:
  1525. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1526. * CarbonLib: not available
  1527. * Mac OS X: not available
  1528. */
  1529. EXTERN_API( OSErr )
  1530. PRegisterName(
  1531. MPPPBPtr thePBptr,
  1532. Boolean async);
  1533. /*
  1534. * PLookupName()
  1535. *
  1536. * Availability:
  1537. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1538. * CarbonLib: not available
  1539. * Mac OS X: not available
  1540. */
  1541. EXTERN_API( OSErr )
  1542. PLookupName(
  1543. MPPPBPtr thePBptr,
  1544. Boolean async);
  1545. #define PLookupNameSync(paramBlock) PLookupName((paramBlock), false)
  1546. /*
  1547. * PConfirmName()
  1548. *
  1549. * Availability:
  1550. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1551. * CarbonLib: not available
  1552. * Mac OS X: not available
  1553. */
  1554. EXTERN_API( OSErr )
  1555. PConfirmName(
  1556. MPPPBPtr thePBptr,
  1557. Boolean async);
  1558. /*
  1559. * PRemoveName()
  1560. *
  1561. * Availability:
  1562. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1563. * CarbonLib: not available
  1564. * Mac OS X: not available
  1565. */
  1566. EXTERN_API( OSErr )
  1567. PRemoveName(
  1568. MPPPBPtr thePBptr,
  1569. Boolean async);
  1570. /*
  1571. * PSetSelfSend()
  1572. *
  1573. * Availability:
  1574. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1575. * CarbonLib: not available
  1576. * Mac OS X: not available
  1577. */
  1578. EXTERN_API( OSErr )
  1579. PSetSelfSend(
  1580. MPPPBPtr thePBptr,
  1581. Boolean async);
  1582. /*
  1583. * PKillNBP()
  1584. *
  1585. * Availability:
  1586. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1587. * CarbonLib: not available
  1588. * Mac OS X: not available
  1589. */
  1590. EXTERN_API( OSErr )
  1591. PKillNBP(
  1592. MPPPBPtr thePBptr,
  1593. Boolean async);
  1594. /*
  1595. * PGetAppleTalkInfo()
  1596. *
  1597. * Availability:
  1598. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1599. * CarbonLib: not available
  1600. * Mac OS X: not available
  1601. */
  1602. EXTERN_API( OSErr )
  1603. PGetAppleTalkInfo(
  1604. MPPPBPtr thePBptr,
  1605. Boolean async);
  1606. /*
  1607. * PATalkClosePrep()
  1608. *
  1609. * Availability:
  1610. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1611. * CarbonLib: not available
  1612. * Mac OS X: not available
  1613. */
  1614. EXTERN_API( OSErr )
  1615. PATalkClosePrep(
  1616. MPPPBPtr thePBptr,
  1617. Boolean async);
  1618. /*
  1619. * POpenATPSkt()
  1620. *
  1621. * Availability:
  1622. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1623. * CarbonLib: not available
  1624. * Mac OS X: not available
  1625. */
  1626. EXTERN_API( OSErr )
  1627. POpenATPSkt(
  1628. ATPPBPtr thePBptr,
  1629. Boolean async);
  1630. /*
  1631. * PCloseATPSkt()
  1632. *
  1633. * Availability:
  1634. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1635. * CarbonLib: not available
  1636. * Mac OS X: not available
  1637. */
  1638. EXTERN_API( OSErr )
  1639. PCloseATPSkt(
  1640. ATPPBPtr thePBPtr,
  1641. Boolean async);
  1642. /*
  1643. * PSendRequest()
  1644. *
  1645. * Availability:
  1646. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1647. * CarbonLib: not available
  1648. * Mac OS X: not available
  1649. */
  1650. EXTERN_API( OSErr )
  1651. PSendRequest(
  1652. ATPPBPtr thePBPtr,
  1653. Boolean async);
  1654. /*
  1655. * PGetRequest()
  1656. *
  1657. * Availability:
  1658. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1659. * CarbonLib: not available
  1660. * Mac OS X: not available
  1661. */
  1662. EXTERN_API( OSErr )
  1663. PGetRequest(
  1664. ATPPBPtr thePBPtr,
  1665. Boolean async);
  1666. /*
  1667. * PSendResponse()
  1668. *
  1669. * Availability:
  1670. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1671. * CarbonLib: not available
  1672. * Mac OS X: not available
  1673. */
  1674. EXTERN_API( OSErr )
  1675. PSendResponse(
  1676. ATPPBPtr thePBPtr,
  1677. Boolean async);
  1678. /*
  1679. * PAddResponse()
  1680. *
  1681. * Availability:
  1682. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1683. * CarbonLib: not available
  1684. * Mac OS X: not available
  1685. */
  1686. EXTERN_API( OSErr )
  1687. PAddResponse(
  1688. ATPPBPtr thePBPtr,
  1689. Boolean async);
  1690. /*
  1691. * PRelTCB()
  1692. *
  1693. * Availability:
  1694. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1695. * CarbonLib: not available
  1696. * Mac OS X: not available
  1697. */
  1698. EXTERN_API( OSErr )
  1699. PRelTCB(
  1700. ATPPBPtr thePBPtr,
  1701. Boolean async);
  1702. /*
  1703. * PRelRspCB()
  1704. *
  1705. * Availability:
  1706. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1707. * CarbonLib: not available
  1708. * Mac OS X: not available
  1709. */
  1710. EXTERN_API( OSErr )
  1711. PRelRspCB(
  1712. ATPPBPtr thePBPtr,
  1713. Boolean async);
  1714. /*
  1715. * PNSendRequest()
  1716. *
  1717. * Availability:
  1718. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1719. * CarbonLib: not available
  1720. * Mac OS X: not available
  1721. */
  1722. EXTERN_API( OSErr )
  1723. PNSendRequest(
  1724. ATPPBPtr thePBPtr,
  1725. Boolean async);
  1726. /*
  1727. * PKillSendReq()
  1728. *
  1729. * Availability:
  1730. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1731. * CarbonLib: not available
  1732. * Mac OS X: not available
  1733. */
  1734. EXTERN_API( OSErr )
  1735. PKillSendReq(
  1736. ATPPBPtr thePBPtr,
  1737. Boolean async);
  1738. /*
  1739. * PKillGetReq()
  1740. *
  1741. * Availability:
  1742. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1743. * CarbonLib: not available
  1744. * Mac OS X: not available
  1745. */
  1746. EXTERN_API( OSErr )
  1747. PKillGetReq(
  1748. ATPPBPtr thePBPtr,
  1749. Boolean async);
  1750. /*
  1751. * ATPKillAllGetReq()
  1752. *
  1753. * Availability:
  1754. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1755. * CarbonLib: not available
  1756. * Mac OS X: not available
  1757. */
  1758. EXTERN_API( OSErr )
  1759. ATPKillAllGetReq(
  1760. ATPPBPtr thePBPtr,
  1761. Boolean async);
  1762. /*
  1763. * BuildLAPwds()
  1764. *
  1765. * Availability:
  1766. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1767. * CarbonLib: not available
  1768. * Mac OS X: not available
  1769. */
  1770. EXTERN_API( void )
  1771. BuildLAPwds(
  1772. Ptr wdsPtr,
  1773. Ptr dataPtr,
  1774. short destHost,
  1775. short prototype,
  1776. short frameLen);
  1777. /*
  1778. * BuildDDPwds()
  1779. *
  1780. * Availability:
  1781. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1782. * CarbonLib: not available
  1783. * Mac OS X: not available
  1784. */
  1785. EXTERN_API( void )
  1786. BuildDDPwds(
  1787. Ptr wdsPtr,
  1788. Ptr headerPtr,
  1789. Ptr dataPtr,
  1790. AddrBlock netAddr,
  1791. short ddpType,
  1792. short dataLen);
  1793. /*
  1794. * NBPSetEntity()
  1795. *
  1796. * Availability:
  1797. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1798. * CarbonLib: not available
  1799. * Mac OS X: not available
  1800. */
  1801. EXTERN_API( void )
  1802. NBPSetEntity(
  1803. Ptr buffer,
  1804. ConstStr32Param nbpObject,
  1805. ConstStr32Param nbpType,
  1806. ConstStr32Param nbpZone);
  1807. /*
  1808. * NBPSetNTE()
  1809. *
  1810. * Availability:
  1811. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1812. * CarbonLib: not available
  1813. * Mac OS X: not available
  1814. */
  1815. EXTERN_API( void )
  1816. NBPSetNTE(
  1817. Ptr ntePtr,
  1818. ConstStr32Param nbpObject,
  1819. ConstStr32Param nbpType,
  1820. ConstStr32Param nbpZone,
  1821. short socket);
  1822. /*
  1823. * GetBridgeAddress()
  1824. *
  1825. * Availability:
  1826. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1827. * CarbonLib: not available
  1828. * Mac OS X: not available
  1829. */
  1830. EXTERN_API( short )
  1831. GetBridgeAddress(void);
  1832. /*
  1833. * BuildBDS()
  1834. *
  1835. * Availability:
  1836. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1837. * CarbonLib: not available
  1838. * Mac OS X: not available
  1839. */
  1840. EXTERN_API( short )
  1841. BuildBDS(
  1842. Ptr buffPtr,
  1843. Ptr bdsPtr,
  1844. short buffSize);
  1845. /*
  1846. * MPPOpen()
  1847. *
  1848. * Availability:
  1849. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1850. * CarbonLib: not available
  1851. * Mac OS X: not available
  1852. */
  1853. EXTERN_API( OSErr )
  1854. MPPOpen(void);
  1855. /*
  1856. * LAPAddATQ()
  1857. *
  1858. * Availability:
  1859. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1860. * CarbonLib: not available
  1861. * Mac OS X: not available
  1862. */
  1863. EXTERN_API( OSErr )
  1864. LAPAddATQ(ATQEntryPtr theATQEntry);
  1865. /*
  1866. * LAPRmvATQ()
  1867. *
  1868. * Availability:
  1869. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1870. * CarbonLib: not available
  1871. * Mac OS X: not available
  1872. */
  1873. EXTERN_API( OSErr )
  1874. LAPRmvATQ(ATQEntryPtr theATQEntry);
  1875. /*
  1876. * ATPLoad()
  1877. *
  1878. * Availability:
  1879. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1880. * CarbonLib: not available
  1881. * Mac OS X: not available
  1882. */
  1883. EXTERN_API( OSErr )
  1884. ATPLoad(void);
  1885. /*
  1886. * ATPUnload()
  1887. *
  1888. * Availability:
  1889. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1890. * CarbonLib: not available
  1891. * Mac OS X: not available
  1892. */
  1893. EXTERN_API( OSErr )
  1894. ATPUnload(void);
  1895. /*
  1896. * NBPExtract()
  1897. *
  1898. * Availability:
  1899. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1900. * CarbonLib: not available
  1901. * Mac OS X: not available
  1902. */
  1903. EXTERN_API( OSErr )
  1904. NBPExtract(
  1905. Ptr theBuffer,
  1906. short numInBuf,
  1907. short whichOne,
  1908. EntityName * abEntity,
  1909. AddrBlock * address);
  1910. /*
  1911. * GetNodeAddress()
  1912. *
  1913. * Availability:
  1914. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1915. * CarbonLib: not available
  1916. * Mac OS X: not available
  1917. */
  1918. EXTERN_API( OSErr )
  1919. GetNodeAddress(
  1920. short * myNode,
  1921. short * myNet);
  1922. /*
  1923. * IsMPPOpen()
  1924. *
  1925. * Availability:
  1926. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1927. * CarbonLib: not available
  1928. * Mac OS X: not available
  1929. */
  1930. EXTERN_API( Boolean )
  1931. IsMPPOpen(void);
  1932. /*
  1933. * IsATPOpen()
  1934. *
  1935. * Availability:
  1936. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1937. * CarbonLib: not available
  1938. * Mac OS X: not available
  1939. */
  1940. EXTERN_API( Boolean )
  1941. IsATPOpen(void);
  1942. /*
  1943. * ATEvent()
  1944. *
  1945. * Availability:
  1946. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1947. * CarbonLib: not available
  1948. * Mac OS X: not available
  1949. */
  1950. EXTERN_API( void )
  1951. ATEvent(
  1952. long event,
  1953. Ptr infoPtr);
  1954. /*
  1955. * ATPreFlightEvent()
  1956. *
  1957. * Availability:
  1958. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1959. * CarbonLib: not available
  1960. * Mac OS X: not available
  1961. */
  1962. EXTERN_API( OSErr )
  1963. ATPreFlightEvent(
  1964. long event,
  1965. long cancel,
  1966. Ptr infoPtr);
  1967. /*
  1968. The following routines are obsolete and will not be supported on
  1969. PowerPC. Equivalent functionality is provided by the routines
  1970. above.
  1971. */
  1972. #endif /* CALL_NOT_IN_CARBON */
  1973. #if TARGET_CPU_68K
  1974. #if CALL_NOT_IN_CARBON
  1975. /*
  1976. * MPPClose()
  1977. *
  1978. * Availability:
  1979. * Non-Carbon CFM: not available
  1980. * CarbonLib: not available
  1981. * Mac OS X: not available
  1982. */
  1983. EXTERN_API( OSErr )
  1984. MPPClose(void);
  1985. /*
  1986. * LAPOpenProtocol()
  1987. *
  1988. * Availability:
  1989. * Non-Carbon CFM: not available
  1990. * CarbonLib: not available
  1991. * Mac OS X: not available
  1992. */
  1993. EXTERN_API( OSErr )
  1994. LAPOpenProtocol(
  1995. ABByte theLAPType,
  1996. Ptr protoPtr);
  1997. /*
  1998. * LAPCloseProtocol()
  1999. *
  2000. * Availability:
  2001. * Non-Carbon CFM: not available
  2002. * CarbonLib: not available
  2003. * Mac OS X: not available
  2004. */
  2005. EXTERN_API( OSErr )
  2006. LAPCloseProtocol(ABByte theLAPType);
  2007. /*
  2008. * LAPWrite()
  2009. *
  2010. * Availability:
  2011. * Non-Carbon CFM: not available
  2012. * CarbonLib: not available
  2013. * Mac OS X: not available
  2014. */
  2015. EXTERN_API( OSErr )
  2016. LAPWrite(
  2017. ATLAPRecHandle abRecord,
  2018. Boolean async);
  2019. /*
  2020. * LAPRead()
  2021. *
  2022. * Availability:
  2023. * Non-Carbon CFM: not available
  2024. * CarbonLib: not available
  2025. * Mac OS X: not available
  2026. */
  2027. EXTERN_API( OSErr )
  2028. LAPRead(
  2029. ATLAPRecHandle abRecord,
  2030. Boolean async);
  2031. /*
  2032. * LAPRdCancel()
  2033. *
  2034. * Availability:
  2035. * Non-Carbon CFM: not available
  2036. * CarbonLib: not available
  2037. * Mac OS X: not available
  2038. */
  2039. EXTERN_API( OSErr )
  2040. LAPRdCancel(ATLAPRecHandle abRecord);
  2041. /*
  2042. * DDPOpenSocket()
  2043. *
  2044. * Availability:
  2045. * Non-Carbon CFM: not available
  2046. * CarbonLib: not available
  2047. * Mac OS X: not available
  2048. */
  2049. EXTERN_API( OSErr )
  2050. DDPOpenSocket(
  2051. short * theSocket,
  2052. Ptr sktListener);
  2053. /*
  2054. * DDPCloseSocket()
  2055. *
  2056. * Availability:
  2057. * Non-Carbon CFM: not available
  2058. * CarbonLib: not available
  2059. * Mac OS X: not available
  2060. */
  2061. EXTERN_API( OSErr )
  2062. DDPCloseSocket(short theSocket);
  2063. /*
  2064. * DDPRead()
  2065. *
  2066. * Availability:
  2067. * Non-Carbon CFM: not available
  2068. * CarbonLib: not available
  2069. * Mac OS X: not available
  2070. */
  2071. EXTERN_API( OSErr )
  2072. DDPRead(
  2073. ATDDPRecHandle abRecord,
  2074. Boolean retCksumErrs,
  2075. Boolean async);
  2076. /*
  2077. * DDPWrite()
  2078. *
  2079. * Availability:
  2080. * Non-Carbon CFM: not available
  2081. * CarbonLib: not available
  2082. * Mac OS X: not available
  2083. */
  2084. EXTERN_API( OSErr )
  2085. DDPWrite(
  2086. ATDDPRecHandle abRecord,
  2087. Boolean doChecksum,
  2088. Boolean async);
  2089. /*
  2090. * DDPRdCancel()
  2091. *
  2092. * Availability:
  2093. * Non-Carbon CFM: not available
  2094. * CarbonLib: not available
  2095. * Mac OS X: not available
  2096. */
  2097. EXTERN_API( OSErr )
  2098. DDPRdCancel(ATDDPRecHandle abRecord);
  2099. /*
  2100. * ATPOpenSocket()
  2101. *
  2102. * Availability:
  2103. * Non-Carbon CFM: not available
  2104. * CarbonLib: not available
  2105. * Mac OS X: not available
  2106. */
  2107. EXTERN_API( OSErr )
  2108. ATPOpenSocket(
  2109. AddrBlock addrRcvd,
  2110. short * atpSocket);
  2111. /*
  2112. * ATPCloseSocket()
  2113. *
  2114. * Availability:
  2115. * Non-Carbon CFM: not available
  2116. * CarbonLib: not available
  2117. * Mac OS X: not available
  2118. */
  2119. EXTERN_API( OSErr )
  2120. ATPCloseSocket(short atpSocket);
  2121. /*
  2122. * ATPSndRequest()
  2123. *
  2124. * Availability:
  2125. * Non-Carbon CFM: not available
  2126. * CarbonLib: not available
  2127. * Mac OS X: not available
  2128. */
  2129. EXTERN_API( OSErr )
  2130. ATPSndRequest(
  2131. ATATPRecHandle abRecord,
  2132. Boolean async);
  2133. /*
  2134. * ATPRequest()
  2135. *
  2136. * Availability:
  2137. * Non-Carbon CFM: not available
  2138. * CarbonLib: not available
  2139. * Mac OS X: not available
  2140. */
  2141. EXTERN_API( OSErr )
  2142. ATPRequest(
  2143. ATATPRecHandle abRecord,
  2144. Boolean async);
  2145. /*
  2146. * ATPReqCancel()
  2147. *
  2148. * Availability:
  2149. * Non-Carbon CFM: not available
  2150. * CarbonLib: not available
  2151. * Mac OS X: not available
  2152. */
  2153. EXTERN_API( OSErr )
  2154. ATPReqCancel(
  2155. ATATPRecHandle abRecord,
  2156. Boolean async);
  2157. /*
  2158. * ATPGetRequest()
  2159. *
  2160. * Availability:
  2161. * Non-Carbon CFM: not available
  2162. * CarbonLib: not available
  2163. * Mac OS X: not available
  2164. */
  2165. EXTERN_API( OSErr )
  2166. ATPGetRequest(
  2167. ATATPRecHandle abRecord,
  2168. Boolean async);
  2169. /*
  2170. * ATPSndRsp()
  2171. *
  2172. * Availability:
  2173. * Non-Carbon CFM: not available
  2174. * CarbonLib: not available
  2175. * Mac OS X: not available
  2176. */
  2177. EXTERN_API( OSErr )
  2178. ATPSndRsp(
  2179. ATATPRecHandle abRecord,
  2180. Boolean async);
  2181. /*
  2182. * ATPAddRsp()
  2183. *
  2184. * Availability:
  2185. * Non-Carbon CFM: not available
  2186. * CarbonLib: not available
  2187. * Mac OS X: not available
  2188. */
  2189. EXTERN_API( OSErr )
  2190. ATPAddRsp(ATATPRecHandle abRecord);
  2191. /*
  2192. * ATPResponse()
  2193. *
  2194. * Availability:
  2195. * Non-Carbon CFM: not available
  2196. * CarbonLib: not available
  2197. * Mac OS X: not available
  2198. */
  2199. EXTERN_API( OSErr )
  2200. ATPResponse(
  2201. ATATPRecHandle abRecord,
  2202. Boolean async);
  2203. /*
  2204. * ATPRspCancel()
  2205. *
  2206. * Availability:
  2207. * Non-Carbon CFM: not available
  2208. * CarbonLib: not available
  2209. * Mac OS X: not available
  2210. */
  2211. EXTERN_API( OSErr )
  2212. ATPRspCancel(
  2213. ATATPRecHandle abRecord,
  2214. Boolean async);
  2215. /*
  2216. * NBPRegister()
  2217. *
  2218. * Availability:
  2219. * Non-Carbon CFM: not available
  2220. * CarbonLib: not available
  2221. * Mac OS X: not available
  2222. */
  2223. EXTERN_API( OSErr )
  2224. NBPRegister(
  2225. ATNBPRecHandle abRecord,
  2226. Boolean async);
  2227. /*
  2228. * NBPLookup()
  2229. *
  2230. * Availability:
  2231. * Non-Carbon CFM: not available
  2232. * CarbonLib: not available
  2233. * Mac OS X: not available
  2234. */
  2235. EXTERN_API( OSErr )
  2236. NBPLookup(
  2237. ATNBPRecHandle abRecord,
  2238. Boolean async);
  2239. /*
  2240. * NBPConfirm()
  2241. *
  2242. * Availability:
  2243. * Non-Carbon CFM: not available
  2244. * CarbonLib: not available
  2245. * Mac OS X: not available
  2246. */
  2247. EXTERN_API( OSErr )
  2248. NBPConfirm(
  2249. ATNBPRecHandle abRecord,
  2250. Boolean async);
  2251. /*
  2252. * NBPRemove()
  2253. *
  2254. * Availability:
  2255. * Non-Carbon CFM: not available
  2256. * CarbonLib: not available
  2257. * Mac OS X: not available
  2258. */
  2259. EXTERN_API( OSErr )
  2260. NBPRemove(EntityPtr abEntity);
  2261. /*
  2262. * NBPLoad()
  2263. *
  2264. * Availability:
  2265. * Non-Carbon CFM: not available
  2266. * CarbonLib: not available
  2267. * Mac OS X: not available
  2268. */
  2269. EXTERN_API( OSErr )
  2270. NBPLoad(void);
  2271. /*
  2272. * NBPUnload()
  2273. *
  2274. * Availability:
  2275. * Non-Carbon CFM: not available
  2276. * CarbonLib: not available
  2277. * Mac OS X: not available
  2278. */
  2279. EXTERN_API( OSErr )
  2280. NBPUnload(void);
  2281. #endif /* CALL_NOT_IN_CARBON */
  2282. #endif /* TARGET_CPU_68K */
  2283. #if PRAGMA_STRUCT_ALIGN
  2284. #pragma options align=reset
  2285. #elif PRAGMA_STRUCT_PACKPUSH
  2286. #pragma pack(pop)
  2287. #elif PRAGMA_STRUCT_PACK
  2288. #pragma pack()
  2289. #endif
  2290. #ifdef PRAGMA_IMPORT_OFF
  2291. #pragma import off
  2292. #elif PRAGMA_IMPORT
  2293. #pragma import reset
  2294. #endif
  2295. #ifdef __cplusplus
  2296. }
  2297. #endif
  2298. #endif /* __APPLETALK__ */