/*->h.glue */

typedef os_error *(*TWselectfn)(int ok);

extern TW_IDENTITY appID;
extern TW_IDENTITY dsID;


/***********************************************************************/
/* Function prototypes from module TWA_GLUE.C */
/***********************************************************************/

/* Candy routines */

void TWInitialize(pTW_IDENTITY pIdentity,int taskhandle);
void TWTerminate(void);

extern void TWSelectTerminate(int ok);
extern int TWIsTWSelectOpen(void);

/* Routines for DSM */
os_error * TWOpenDSM(void);
BOOL TWCloseDSM(void);
BOOL TWIsDSMOpen(void);

/* Routines for DS */
BOOL TWOpenDS(void);
void TWCloseDS(void);
BOOL TWEnableDS(int nouserinterface);
void TWDisableDS(void);
BOOL TWIsDSOpen(void);
TW_UINT32 TWGetPixelType(void);
TW_UINT16 TWSetPixelType(TW_UINT16, TW_INT32);
BOOL TWSelectDS(TWselectfn TWselect);

/* Routines for Errors/Interface */

extern int TW_GreySelect(void);
extern int TW_GreyAcquire(void);

