xwords/xwords4/palm/pnostate.h

37 lines
987 B
C
Raw Normal View History

2004-09-17 09:11:15 +02:00
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */
#ifndef _PNOSTATE_H_
#define _PNOSTATE_H_
#include <PceNativeCall.h>
2004-09-19 05:28:45 +02:00
#include <MemoryMgr.h>
2004-09-17 09:11:15 +02:00
/* This gets written into the code by the callback below. */
typedef struct PNOState {
const void* emulStateP;
Call68KFuncType* call68KFuncP;
void* gotTable;
} PNOState;
2004-09-19 05:28:45 +02:00
/* I can't get the circular decls to work now */
typedef void StorageCallback(/*PnoletUserData*/void* dataP);
2004-09-17 09:11:15 +02:00
/* This is how armlet and 68K stub communicate on startup */
2004-09-19 05:28:45 +02:00
typedef struct PnoletUserData {
2004-09-17 09:11:15 +02:00
unsigned long* pnoletEntry;
unsigned long* gotTable;
StorageCallback* storageCallback; /* armlet calls this */
PNOState* stateSrc; /* armlet fills in */
PNOState* stateDest; /* armlet fills in */
2004-09-19 05:28:45 +02:00
/* PilotMain params */
MemPtr cmdPBP;
UInt16 cmd;
UInt16 launchFlags;
/* Other.... */
Boolean recursive; /* PilotMain called from inside PilotMain */
2004-09-19 05:28:45 +02:00
} PnoletUserData;
2004-09-17 09:11:15 +02:00
#endif