/*
	File:		ODOSATyp.h

	Contains:	OpendDoc OSA types and defines

	Written by:	Randy Moe

	Copyright:	c 1995 by Novell, Inc., all rights reserved.

	Change History (most recent first):

		15Mar95		RAM		Creation
	
	To Do:
*/

#ifndef _ODOSATYP_
#define _ODOSATYP_

#ifndef	_APPLEEVENT_
#include "Applevnt.h"
#endif

#define OSA_SUPPORT			// enable scripting and OSA support
#define nil NULL

typedef ProcPtr UniversalProcPtr;
typedef ProcPtr AEIdleUPP;
typedef ProcPtr AEFilterUPP;
typedef ProcPtr AECoercionHandlerUPP;
typedef ProcPtr AEEventHandlerUPP;
#define NewAEEventHandlerProc(userRoutine) (AEEventHandlerUPP)(userRoutine)

typedef OSErr (*AECoerceDescProcPtr)(const AEDesc *fromDesc, DescType toType, long handlerRefcon, AEDesc *toDesc);
typedef AECoerceDescProcPtr AECoerceDescUPP;
#define NewAECoerceDescProc(userRoutine) (AECoerceDescUPP)(userRoutine)

struct ODParamData {
	HCONV		ODConv;
	HSZ			ODService;
	HSZ			ODTopic;
	HDDEDATA	ODData;
};

#endif	/* _ODOSATYP_ */
