A
download EPPC.h
Language: C
Copyright: (c) 1988-2001 by Apple Computer, Inc., all rights reserved
LOC: 161
Project Info
guliverkli
Server: SourceForge
Type: cvs
...rkli\guliverkli\include\qt\
   ADSP.h
   ADSPSecure.h
   AEDataModel.h
   AEObjects.h
   AEPackObject.h
   AERegistry.h
   AEUserTermTypes.h
   AGP.h
   AIFF.h
   Aliases.h
   Appearance.h
   AppleEvents.h
   AppleGuide.h
   AppleScript.h
   AppleTalk.h
   ASDebugging.h
   ASRegistry.h
   ATA.h
   ATSLayoutTypes.h
   ATSTypes.h
   ATSUnicode.h
   AVComponents.h
   AVLTree.h
   Balloons.h
   CarbonEvents.h
   CardServices.h
   CFArray.h
   CFBag.h
   CFBase.h
   CFBundle.h
   CFCharacterSet.h
   CFData.h
   CFDate.h
   CFDictionary.h
   CFNumber.h
   CFPlugIn.h
   CFPreferences.h
   CFPropertyList.h
   CFSet.h
   CFString.h
   CFStringEncodingExt.h
   CFTimeZone.h
   CFURL.h
   CFURLAccess.h
   CMAcceleration.h
   CMApplication.h
   CMCalibrator.h
   CMComponent.h
   CMConversions.h
   CMICCProfile.h
   CMMComponent.h
   CMPRComponent.h
   CMScriptingPlugin.h
   CodeFragments.h
   Collections.h
   ColorPicker.h
   ColorPickerComponents.h
   CommResources.h
   Components.h
   ConditionalMacros.h
   Connections.h
   ConnectionTools.h
   ControlDefinitions.h
   Controls.h
   ControlStrip.h
   CoreFoundation.h
   CRMSerialDevices.h
   CryptoMessageSyntax.h
   CTBUtilities.h
   CursorDevices.h
   DatabaseAccess.h
   DateTimeUtils.h
   Debugging.h
   DeskBus.h
   DeviceControl.h
   Devices.h
   Dialogs.h
   Dictionary.h
   DigitalSignature.h
   DiskInit.h
   Disks.h
   Displays.h
   Drag.h
   DrawSprocket.h
   DriverFamilyMatching.h
   DriverGestalt.h
   DriverServices.h
   DriverSupport.h
   DriverSynchronization.h
   Editions.h
   Endian.h
   ENET.h
   EPPC.h
   Events.h
   fenv.h
   Files.h
   FileSigning.h
   FileTransfers.h
   FileTransferTools.h
   FileTypesAndCreators.h
   FindByContent.h
   Finder.h
   FinderRegistry.h
   FixMath.h
   Folders.h
   Fonts.h
   FontSync.h
   fp.h
   FSM.h
   Gestalt.h
   GXEnvironment.h
   GXErrors.h
   GXFonts.h
   GXGraphics.h
   GXLayout.h
   GXMath.h
   GXMessages.h
   GXPrinterDrivers.h
   GXPrinting.h
   GXTypes.h
   HFSVolumes.h
   HID.h
   HTMLRendering.h
   HyperXCmd.h
   IAExtractor.h
   Icons.h
   ImageCodec.h
   ImageCompression.h
   InputSprocket.h
   Interrupts.h
   IntlResources.h
   IsochronousDataHandler.h
   JManager.h
   Kernel.h
   LanguageAnalysis.h
   Lists.h
   LocationManager.h
   LowMem.h
   MacErrors.h
   MacHelp.h
   MachineExceptions.h
   MacMemory.h
   MacTCP.h
   MacTypes.h
   MacWindows.h
   Math64.h
   MediaHandlers.h
   Menus.h
   MIDI.h
   MixedMode.h
   MovieManager.h
   Movies.h
   MoviesFormat.h
   Multiprocessing.h
   NameRegistry.h
   Navigation.h
   NetSprocket.h
   NetworkSetup.h
   Notification.h
   NSL.h
   NSLUtility.h
   NumberFormatting.h
   OCE.h
   OCEAuthDir.h
   OCEErrors.h
   OCEMail.h
   OCEMessaging.h
   OCEStandardDirectory.h
   OCEStandardMail.h
   OCETemplates.h
   OpenTransportKernel.h
   OpenTransportProtocol.h
   OpenTransportProviders.h
   OpenTransportUNIX.h
   OSA.h
   OSAComp.h
   OSAGeneric.h
   OSUtils.h
   Packages.h
   Palettes.h
   Patches.h
   PCCard.h
   PCCardAdapterPlugin.h
   PCCardEnablerPlugin.h
   PCCardTuples.h
   PCI.h
   PEFBinaryFormat.h
   PictUtils.h
   PLStringFuncs.h
   Power.h
   PPCToolbox.h
   Printing.h
   Processes.h
   QD3D.h
   QD3DAcceleration.h
   QD3DCamera.h
   QD3DController.h
   QD3DCustomElements.h
   QD3DDrawContext.h
   QD3DErrors.h
   QD3DExtension.h
   QD3DGeometry.h
   QD3DGroup.h
   QD3DIO.h
   QD3DLight.h
   QD3DMath.h
   QD3DPick.h
   QD3DRenderer.h
   QD3DSet.h
   QD3DShader.h
   QD3DStorage.h
   QD3DString.h
   QD3DStyle.h
   QD3DTransform.h
   QD3DView.h
   QD3DViewer.h
   QD3DWinViewer.h
   QDOffscreen.h
   qt.h
   QTContentRestrictions.h
   QTML.h
   QTSMovie.h
   QTStreamingComponents.h
   Quickdraw.h
   QuickdrawText.h
   QuickTimeComponents.h
   QuickTimeMusic.h
   QuickTimeStreaming.h
   QuickTimeVR.h
   QuickTimeVRFormat.h
   RAVE.h
   RAVESystem.h
   Resources.h
   Retrace.h
   ROMDefs.h
   ScalerStreamTypes.h
   ScalerTypes.h
   Scrap.h
   Script.h
   SCSI.h
   SegLoad.h
   Serial.h
   SFNTLayoutTypes.h
   SFNTTypes.h
   ShutDown.h
   Slots.h
   SocketServices.h
   Sound.h
   SoundComponents.h
   SoundInput.h
   SoundSprocket.h
   Speech.h
   SpeechRecognition.h
   SpeechSynthesis.h
   StandardFile.h
   Start.h
   StringCompare.h
   Strings.h
   Telephones.h
   Terminals.h
   TerminalTools.h
   TextCommon.h
   TextEdit.h
   TextEncodingConverter.h
   TextServices.h
   TextUtils.h
   Threads.h
   Timer.h
   ToolUtils.h
   Translation.h
   TranslationExtensions.h
   Traps.h
   TSMTE.h
   Unicode.h
   UnicodeConverter.h
   UnicodeUtilities.h
   URLAccess.h
   UTCUtils.h
   Video.h
   VideoServices.h
   WorldScript.h
   ZoomedVideo.h

/*
     File:       EPPC.h
 
     Contains:   High Level Event Manager Interfaces.
 
     Version:    Technology: System 7.5
                 Release:    QuickTime 6.0.2
 
     Copyright:  (c) 1988-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 __EPPC__
#define __EPPC__

#ifndef __MACERRORS__
#include "MacErrors.h"
#endif

#ifndef __APPLETALK__
#include "AppleTalk.h"
#endif

#ifndef __FILES__
#include "Files.h"
#endif

#ifndef __PPCTOOLBOX__
#include "PPCToolbox.h"
#endif

#ifndef __PROCESSES__
#include "Processes.h"
#endif

#ifndef __EVENTS__
#include "Events.h"
#endif




#if PRAGMA_ONCE
#pragma once
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if PRAGMA_IMPORT
#pragma import on
#endif

#if PRAGMA_STRUCT_ALIGN
    #pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
    #pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
    #pragma pack(2)
#endif

enum {
                                                                /* postOptions currently supported */
    receiverIDMask              = 0x0000F000,
    receiverIDisPSN             = 0x00008000,
    receiverIDisSignature       = 0x00007000,
    receiverIDisSessionID       = 0x00006000,
    receiverIDisTargetID        = 0x00005000,
    systemOptionsMask           = 0x00000F00,
    nReturnReceipt              = 0x00000200,
    priorityMask                = 0x000000FF,
    nAttnMsg                    = 0x00000001
};

enum {
                                                                /* constant for return receipts */
    HighLevelEventMsgClass      = FOUR_CHAR_CODE('jaym'),
    rtrnReceiptMsgID            = FOUR_CHAR_CODE('rtrn')
};

enum {
    msgWasPartiallyAccepted     = 2,
    msgWasFullyAccepted         = 1,
    msgWasNotAccepted           = 0
};


struct TargetID {
    long                            sessionID;
    PPCPortRec                      name;
    LocationNameRec                 location;
    PPCPortRec                      recvrName;
};
typedef struct TargetID                 TargetID;
typedef TargetID *                      TargetIDPtr;
typedef TargetIDPtr *                   TargetIDHandle;
typedef TargetIDHandle                  TargetIDHdl;

typedef TargetID                        SenderID;
typedef SenderID *                      SenderIDPtr;

struct HighLevelEventMsg {
    unsigned short                  HighLevelEventMsgHeaderLength;
    unsigned short                  version;
    unsigned long                   reserved1;
    EventRecord                     theMsgEvent;
    unsigned long                   userRefcon;
    unsigned long                   postingOptions;
    unsigned long                   msgLength;
};
typedef struct HighLevelEventMsg        HighLevelEventMsg;
typedef HighLevelEventMsg *             HighLevelEventMsgPtr;
typedef HighLevelEventMsgPtr *          HighLevelEventMsgHandle;
typedef HighLevelEventMsgHandle         HighLevelEventMsgHdl;
typedef CALLBACK_API( Boolean , GetSpecificFilterProcPtr )(void *contextPtr, HighLevelEventMsgPtr msgBuff, const TargetID *sender);
typedef STACK_UPP_TYPE(GetSpecificFilterProcPtr)                GetSpecificFilterUPP;
#if OPAQUE_UPP_TYPES
#if CALL_NOT_IN_CARBON
    EXTERN_API(GetSpecificFilterUPP)
    NewGetSpecificFilterUPP        (GetSpecificFilterProcPtr userRoutine);

    EXTERN_API(void)
    DisposeGetSpecificFilterUPP    (GetSpecificFilterUPP    userUPP);

    EXTERN_API(Boolean)
    InvokeGetSpecificFilterUPP     (void *                  contextPtr,
                                    HighLevelEventMsgPtr    msgBuff,
                                    const TargetID *        sender,
                                    GetSpecificFilterUPP    userUPP);

#endif  /* CALL_NOT_IN_CARBON */

#else
    enum { uppGetSpecificFilterProcInfo = 0x00000FD0 };             /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes) */
    #define NewGetSpecificFilterUPP(userRoutine)                    (GetSpecificFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGetSpecificFilterProcInfo, GetCurrentArchitecture())
    #define DisposeGetSpecificFilterUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
    #define InvokeGetSpecificFilterUPP(contextPtr, msgBuff, sender, userUPP)  (Boolean)CALL_THREE_PARAMETER_UPP((userUPP), uppGetSpecificFilterProcInfo, (contextPtr), (msgBuff), (sender))
#endif
/* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
#define NewGetSpecificFilterProc(userRoutine)                   NewGetSpecificFilterUPP(userRoutine)
#define CallGetSpecificFilterProc(userRoutine, contextPtr, msgBuff, sender) InvokeGetSpecificFilterUPP(contextPtr, msgBuff, sender, userRoutine)
#if CALL_NOT_IN_CARBON
#if CALL_NOT_IN_CARBON
EXTERN_API( OSErr )
PostHighLevelEvent              (const EventRecord *    theEvent,
                                 void *                 receiverID,
                                 unsigned long          msgRefcon,
                                 void *                 msgBuff,
                                 unsigned long          msgLen,
                                 unsigned long          postingOptions)                     THREEWORDINLINE(0x3F3C, 0x0034, 0xA88F);

#endif  /* CALL_NOT_IN_CARBON */

#endif  /* CALL_NOT_IN_CARBON */

#if CALL_NOT_IN_CARBON
#if CALL_NOT_IN_CARBON
EXTERN_API( OSErr )
AcceptHighLevelEvent            (TargetID *             sender,
                                 unsigned long *        msgRefcon,
                                 void *                 msgBuff,
                                 unsigned long *        msgLen)                             THREEWORDINLINE(0x3F3C, 0x0033, 0xA88F);

#endif  /* CALL_NOT_IN_CARBON */

#endif  /* CALL_NOT_IN_CARBON */

#if CALL_NOT_IN_CARBON
#if CALL_NOT_IN_CARBON
EXTERN_API( OSErr )
GetProcessSerialNumberFromPortName (const PPCPortRec *  portName,
                                 ProcessSerialNumber *  pPSN)                               THREEWORDINLINE(0x3F3C, 0x0035, 0xA88F);

#endif  /* CALL_NOT_IN_CARBON */

#endif  /* CALL_NOT_IN_CARBON */

#if CALL_NOT_IN_CARBON
#if CALL_NOT_IN_CARBON
EXTERN_API( OSErr )
GetPortNameFromProcessSerialNumber (PPCPortRec *        portName,
                                 const ProcessSerialNumber * pPSN)                          THREEWORDINLINE(0x3F3C, 0x0046, 0xA88F);

#endif  /* CALL_NOT_IN_CARBON */

#endif  /* CALL_NOT_IN_CARBON */

#if CALL_NOT_IN_CARBON
#if CALL_NOT_IN_CARBON
EXTERN_API( Boolean )
GetSpecificHighLevelEvent       (GetSpecificFilterUPP   aFilter,
                                 void *                 contextPtr,
                                 OSErr *                err)                                THREEWORDINLINE(0x3F3C, 0x0045, 0xA88F);

#endif  /* CALL_NOT_IN_CARBON */

#endif  /* CALL_NOT_IN_CARBON */


#if PRAGMA_STRUCT_ALIGN
    #pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
    #pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
    #pragma pack()
#endif

#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif

#ifdef __cplusplus
}
#endif

#endif /* __EPPC__ */

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us