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

VxWorks

开发平台:

C/C++

  1. /* distNetLib.h - distribted objects network layer header file (VxFusion) */
  2. /* Copyright 1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,24may99,drm  adding vxfusion prefix to VxFusion related includes
  7. 01b,22feb99,drm  added distNetInput()
  8. 01a,10nov98,drm  written.
  9. */
  10. #ifndef __INCdistNetLibh
  11. #define __INCdistNetLibh
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* includes */
  16. #include "vxWorks.h"
  17. #include "vxfusion/distLib.h"
  18. #include "vxfusion/distNodeLib.h"
  19. #include "vxfusion/distTBufLib.h"
  20. /* defines */
  21. #define DIST_CTL_TYPE_NET       DIST_ID_NET_LIB
  22. #define DIST_CTL_SERVICE_HOOK   ((0 << 8) | DIST_CTL_TYPE_NET)
  23. #define DIST_CTL_SERVICE_CONF   ((1 << 8) | DIST_CTL_TYPE_NET)
  24. /* typedefs */
  25. typedef struct  /* DIST_SERV_CONF */
  26.     {
  27.     int     servId;     /* ID of service to configure */
  28.     int     taskPrio;   /* priority of service task */
  29.     int     netPrio;    /* network priority of service */
  30.     } DIST_SERV_CONF;
  31. /* function declarations */
  32. #if defined(__STDC__) || defined(__cplusplus)
  33. void    distNetInput (DIST_NODE_ID nodeIdIn, int prioIn, DIST_TBUF *pTBufIn);
  34. #else   /* __STDC__ */
  35. void    distNetInput ();
  36. #endif /* __STDC__ */
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif  /* __INCdistNetLibh */