home *** CD-ROM | disk | FTP | other *** search
- /*
- File: ConnectionTools.h
-
- Copyright: © 1984-1993 by Apple Computer, Inc., all rights reserved.
-
- WARNING
- This file was auto generated by the interfacer tool. Modifications
- must be made to the master file.
-
- */
-
- #ifndef __CONNECTIONTOOLS__
- #define __CONNECTIONTOOLS__
-
- #ifndef __DIALOGS__
- #include <Dialogs.h>
- /* #include <Windows.h> */
- /* #include <Quickdraw.h> */
- /* #include <Types.h> */
- /* #include <ConditionalMacros.h> */
- /* #include <MixedMode.h> */
- /* #include <Traps.h> */
- /* #include <QuickdrawText.h> */
- /* #include <IntlResources.h> */
- /* #include <Events.h> */
- /* #include <OSUtils.h> */
- /* #include <Controls.h> */
- /* #include <Menus.h> */
- /* #include <TextEdit.h> */
- #endif
-
- #ifndef __CONNECTIONS__
- #include <Connections.h>
- /* #include <CTBUtilities.h> */
- /* #include <Memory.h> */
- /* #include <StandardFile.h> */
- /* #include <Files.h> */
- /* #include <SegLoad.h> */
- /* #include <AppleTalk.h> */
- #endif
-
- enum {
- /* messages for DefProc */
- cmInitMsg = 0,
- cmDisposeMsg = 1,
- cmSuspendMsg = 2,
- cmResumeMsg = 3,
- cmMenuMsg = 4,
- cmEventMsg = 5,
- cmActivateMsg = 6,
- cmDeactivateMsg = 7,
- cmIdleMsg = 50,
- cmResetMsg = 51,
- cmAbortMsg = 52,
- cmReadMsg = 100,
- cmWriteMsg = 101,
- cmStatusMsg = 102,
- cmListenMsg = 103,
- cmAcceptMsg = 104,
- cmCloseMsg = 105,
- cmOpenMsg = 106,
- cmBreakMsg = 107,
- cmIOKillMsg = 108
- };
-
- enum {
- cmEnvironsMsg = 109,
- /* new connection tool messages for ctb 1.1 */
- cmNewIOPBMsg = 110,
- cmDisposeIOPBMsg = 111,
- cmGetErrorStringMsg = 112,
- cmPBReadMsg = 113,
- cmPBWriteMsg = 114,
- cmPBIOKillMsg = 115,
- /* messages for validate DefProc */
- cmValidateMsg = 0,
- cmDefaultMsg = 1,
- /* messages for Setup DefProc */
- cmSpreflightMsg = 0,
- cmSsetupMsg = 1,
- cmSitemMsg = 2,
- cmSfilterMsg = 3,
- cmScleanupMsg = 4,
- /* messages for scripting defProc */
- cmMgetMsg = 0,
- cmMsetMsg = 1,
- /* messages for localization defProc */
- cmL2English = 0,
- cmL2Intl = 1
- };
-
-
- /* private data constants */
-
- #define cdefType 'cdef'
-
- #define cvalType 'cval'
-
- #define csetType 'cset'
-
- #define clocType 'cloc'
-
- #define cscrType 'cscr'
-
- #define cbndType 'cbnd'
-
- #define cverType 'vers'
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct CMDataBuffer {
- Ptr thePtr;
- long count;
- CMChannel channel;
- CMFlags flags;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- typedef struct CMDataBuffer CMDataBuffer;
-
- typedef CMDataBuffer *CMDataBufferPtr;
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct CMCompletorRecord {
- Boolean async;
- ConnectionCompletionUPP completionRoutine;
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- typedef struct CMCompletorRecord CMCompletorRecord;
-
- typedef CMCompletorRecord *CMCompletorPtr;
-
-
- /* Private Data Structure */
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct CMSetupStruct {
- DialogPtr theDialog;
- short count;
- Ptr theConfig;
- short procID; /* procID of the tool */
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- typedef struct CMSetupStruct CMSetupStruct;
-
- typedef CMSetupStruct *CMSetupPtr;
-
- #endif
-
-