home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
DAP
/
DAPAPI.H
< prev
next >
Wrap
Text File
|
1992-07-15
|
4KB
|
87 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: dapapi.h ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 02/28/92 kl initial release. ║
// ╚════════════════════════════════════════════════════════════════════╝
#if !defined(DAPAPI)
#define DAPAPI
#include "dap/dap.h" /* get the common struct declarations */
extern char *DAPTranslateReturnCode(T_RC rc);
#if defined(ENGINE)
#include "dap/dape/dapstat.h"
extern int RenameThread(int,char *);
extern T_RC DAPInitialize(char *server, WORD type);
extern void DAPDeInitialize(void);
extern UINT32 DAPSeeIfActiveCPid(UINT32 CPid);
extern void DAPAllocateSession(DAPDATA *DAPid);
extern void DAPDeAllocateSession(DAPDATA *DAPid);
extern void DAPStoreValue(DAPDATA *DAPid);
extern void DAPResetCalculator(DAPDATA *DAPid);
extern void DAPMultiplyOperands(DAPDATA *DAPid);
extern void DAPDivideOperands(DAPDATA *DAPid);
extern void DAPRecallValue(DAPDATA *DAPid);
extern void DAPSubtractOperands(DAPDATA *DAPid);
extern void DAPAddOperands(DAPDATA *DAPid);
extern T_RC DAPInitializeIOLogic(void);
extern void DAPDeInitializeIOLogic(void);
extern int DAPatprintf(WORD row, WORD col, char *fmt, ... );
extern int DAPprintf(char *fmt, ... );
extern void DAPEnqueueServiceReply(DAPDATA *DAPid);
extern T_RC DAPInitializeSendLogic(void);
extern void DAPDeInitializeSendLogic(void);
extern void DAPEnqueueServiceRequest(UINT32 CPid, void *data);
extern T_RC DAPInitializeRecvLogic(void);
extern void DAPDeInitializeRecvLogic(void);
extern UINT32 DAPGetMaximumNumberOfSessions(void);
extern DAPDATA *DAPGetClientArray(void);
extern T_RC DAPInitializeSessLogic(void);
extern void DAPDeInitializeSessLogic(void);
extern UINT32 DAPAllocateSlot(void);
extern void DAPDeAllocateSlot(DAPDATA *DAPid);
extern void DAPInvalidRequest(DAPDATA *DAPid);
extern void DAPDispatchRequestAPI(DAPDATA *DAPid);
#else
#define DAPprintf printf
extern DAPDATA *DAPInitialize(char *name, WORD type);
extern void DAPDeInitialize(DAPDATA *DAPid);
extern T_RC DAPAllocateSession(DAPDATA *DAPid);
extern T_RC DAPDeAllocateSession(DAPDATA *DAPid);
extern T_RC DAPSendRequest(DAPDATA *DAPid, UINT16 requestCode);
extern T_RC DAPAddOperands(DAPDATA *DAPid,long op1, long op2, long *result);
extern T_RC DAPSubtractOperands(DAPDATA *DAPid,long op1, long op2, long *result);
extern T_RC DAPMultiplyOperands(DAPDATA *DAPid,long op1, long op2, long *result);
extern T_RC DAPDivideOperands(DAPDATA *DAPid,long op1, long op2, long *result);
extern T_RC DAPResetCalculator(DAPDATA *DAPid, long *memory);
extern T_RC DAPStoreValue(DAPDATA *DAPid,long val, long *oldval);
extern T_RC DAPRecallValue(DAPDATA *DAPid,long *val);
extern void DAPDisplaySessionData(DAPDATA *DAPid);
extern UINT16 DAPGetNumRetries(DAPDATA *DAPid);
extern UINT16 DAPGetNumSendErr(DAPDATA *DAPid);
#endif // !defined(ENGINE)
#endif // !defined(DAPAPI)