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

VxWorks

开发平台:

C/C++

  1. /* wdbSvcLib.h - header file for remote debug server */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01f,25apr02,jhw  Added C++ support (SPR 76304).
  7. 01e,11jan99,dbt  added wdbSvcHookAdd() prototype (SPR #24323).
  8. 01d,12feb98,dbt  added "dynamic" field in WDB_SVC structure
  9.  added wdbSvcDsaSvcRemove() declaration.
  10. 01c,05apr95,ms   new data types.
  11. 01b,06feb95,ms  added XPORT handle to dispatch routine.
  12. 01a,20sep94,ms   written.
  13. */
  14. #ifndef __INCwdbSvcLibh
  15. #define __INCwdbSvcLibh
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /* includes */
  20. #include "wdb/wdb.h"
  21. #include "wdb/wdbRpcLib.h"
  22. /* data types */
  23. typedef struct /* hidden */
  24.     {
  25.     u_int serviceNum;
  26.     UINT32 (*serviceRtn)();
  27.     xdrproc_t inProc;
  28.     xdrproc_t outProc;
  29.     BOOL dynamic; /* dynamically loaded service */
  30.     } WDB_SVC;
  31. /* function prototypes */
  32. #if defined(__STDC__)
  33. extern void wdbSvcLibInit (WDB_SVC *wdbSvcArray, u_int size);
  34. extern STATUS wdbSvcAdd (u_int procNum, UINT32 (*rout)(),
  35.  BOOL (*xdrIn)(), BOOL (*xdrOut)());
  36. extern void wdbSvcDispatch (WDB_XPORT *pXport, uint_t procNum);
  37. extern void wdbSvcDsaSvcRemove (void);
  38. extern void wdbSvcHookAdd (FUNCPTR hookRtn, u_int arg);
  39. #else   /* __STDC__ */
  40. extern void wdbSvcLibInit ();
  41. extern STATUS wdbSvcAdd ();
  42. extern void wdbSvcDispatch ();
  43. extern void wdbSvcDsaSvcRemove ();
  44. extern void wdbSvcHookAdd ();
  45. #endif  /* __STDC__ */
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif  /* __INCwdbSvcLibh */