wdbRpcLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* wdbRpcLib.h - header file for remote debug agents RPC interface */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,25apr02,jhw  Added C++ support (SPR 76304).
  7. 01c,03jun95,ms added wdbRpcNotifyConnect.
  8. 01b,05apr95,ms  new data types.
  9. 01a,06feb95,ms written.
  10. */
  11. #ifndef __INCwdbRpcLibh
  12. #define __INCwdbRpcLibh
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* includes */
  17. #include "wdb/wdbCommIfLib.h"
  18. /* data types */
  19. typedef struct /* hidden */
  20.     {
  21.     WDB_COMM_IF * pCommIf; /* communication interface */
  22.     XDR xdrs; /* XDR stream */
  23.     UINT32 * pInBuf; /* input buffer */
  24.     int numBytesIn; /* # bytes recv'ed */
  25.     UINT32 * pOutBuf; /* output buffer */
  26.     u_int numBytesOut; /* # bytes sent */
  27.     u_int bufSize; /* size of buffers in bytes */
  28.     u_int xid; /* transport ID */
  29.     struct sockaddr_in notifyAddr; /* address to send event data */
  30.     struct sockaddr_in replyAddr; /* address to send reply */
  31.     } WDB_XPORT;
  32. /* function prototypes */
  33. #if defined(__STDC__)
  34. extern void wdbRpcXportInit   (WDB_XPORT *pXport, WDB_COMM_IF *pIf,
  35.     caddr_t pInBuf, caddr_t pOutBuf,
  36.     u_int bufSize);
  37. extern BOOL wdbRpcRcv   (void *pXport, struct timeval *tv);
  38. extern BOOL wdbRpcGetArgs   (void *pXport, BOOL (*inProc)(),
  39.     caddr_t args);
  40. extern void     wdbRpcReply       (void *pXport, BOOL (*inProc)(),
  41.     caddr_t addr);
  42. extern void     wdbRpcReplyErr    (void *pXport, uint_t errStatus);
  43. extern void     wdbRpcResendReply (void *pXport);
  44. extern void     wdbRpcNotifyHost (void *pXport);
  45. extern void wdbRpcNotifyConnect (void *pXport);
  46. #else /* __STDC__ */
  47. extern void wdbRpcXportInit ();
  48. extern BOOL wdbRpcRcv ();
  49. extern void     wdbRpcIn ();
  50. extern BOOL wdbRpcGetArgs ();
  51. extern void     wdbRpcReply ();
  52. extern void     wdbRpcReplyErr ();
  53. extern void     wdbRpcResendReply ();
  54. extern void     wdbRpcNotifyHost ();
  55. extern void wdbRpcNotifyConnect ();
  56. #endif /* __STDC__ */
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* __INCwdbRpcLibh */