home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / dax1.exe / CP / CPAPI.H < prev    next >
Text File  |  1992-07-15  |  3KB  |  78 lines

  1. //   ╔════════════════════════════════════════════════════════════════════╗
  2. //   ║                                                                    ║
  3. //   ║ module:      cpapi.h                                               ║
  4. //   ║                                                                    ║
  5. //   ║  This software is provided as is and carries no warranty           ║
  6. //   ║  whatsoever.  Novell disclaims and excludes any and all implied    ║
  7. //   ║  warranties of merchantability, title and fitness for a particular ║
  8. //   ║  purpose.  Novell does not warrant that the software will satisfy  ║
  9. //   ║  your requirements or that the software is without defect or error ║
  10. //   ║  or that operation of the software will be uninterrupted.  You are ║
  11. //   ║  using the software at your risk.  The software is not a product   ║
  12. //   ║  of Novell, Inc. or any of subsidiaries.                           ║
  13. //   ║                                                                    ║
  14. //   ╟────────────────────────────────────────────────────────────────────╢
  15. //   ║ maintenance history:                                               ║
  16. //   ║ level    date      pi   description                                ║
  17. //   ╟────────────────────────────────────────────────────────────────────╢
  18. //   ║  001   02/27/92    kl   initial release.                           ║
  19. //   ║  002   07/14/92    kl   windows port.                              ║
  20. //   ╚════════════════════════════════════════════════════════════════════╝
  21.  
  22. /*
  23. **  This header file contains the APIs callable by the DAP layer.
  24. **  The CPSYS.H header file contains all API prototypes, except for
  25. **  those defined here.  However, CPSYS.H #includes this header file,
  26. **  so you don't need to maintain 2 definitions.
  27. */
  28.  
  29. #if !defined(CPAPI)
  30. #define CPAPI
  31.  
  32. #include    "h/extypes.h"
  33.  
  34. #if !defined(CPINCLSTRUC)
  35. typedef void    CPDATA;     // user of this header doesn't need declarations
  36. #endif  // !defined(CPINCLSTRUC)
  37.  
  38. extern  char    *CPTranslateReturnCode(T_RC rc);
  39.  
  40. #if defined(ENGINE)
  41.  
  42. /*
  43. **  -------------------
  44. **  ENGINE Declarations
  45. **  -------------------
  46. */
  47.  
  48. #include    <nwtypes.h>
  49.  
  50. extern  T_RC    CPInitialize(char *srvname, 
  51.                              WORD type, 
  52.                              void (*EnqueueAPI)(UINT32, void *),
  53.                              int (*ioRoutine)(char *fmt, ...));
  54. extern  void    CPDeInitialize(void);
  55. extern  T_RC    CPClearSessionID(UINT32 sessionID);
  56. extern  T_RC    CPSendMessage(UINT32 sessionID, void *data, unsigned length);
  57.  
  58. #else
  59.  
  60. /*
  61. **  -------------------
  62. **  CLIENT Declarations
  63. **  -------------------
  64. */
  65.  
  66. extern  CPDATA  *CPInitialize(char *srvname, UINT16 type);
  67. extern  void    CPDeInitialize(CPDATA *CPid);
  68. extern  T_RC    CPConnectToServer(CPDATA *CPid);
  69. extern  T_RC    CPDisConnectFromServer(CPDATA *CPid);
  70. extern  T_RC    CPRecvMessage(CPDATA *CPid, void *recbuf, unsigned length);
  71. extern  T_RC    CPSendMessage(CPDATA *CPid, void *data, unsigned length);
  72. extern  void    CPRepostAnyCompletedECBs(CPDATA *CPid);
  73. extern  void    CPDisplaySessionData(void *f, CPDATA *CPid);
  74.  
  75. #endif  //  !defined(ENGINE)
  76.  
  77. #endif
  78.