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

VxWorks

开发平台:

C/C++

  1. /* msgQDistGrpLib.h - distributed message queue group library hdr (VxFusion) */
  2. /* Copyright 1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,11jun97,ur   written.
  7. */
  8. #ifndef __INCmsgQDistGrpLibh
  9. #define __INCmsgQDistGrpLibh
  10. #include "vxWorks.h"
  11. #include "vwModNum.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* defines */
  16. #define S_msgQDistGrpLib_NAME_TOO_LONG (M_msgQDistGrpLib | 1) /* error code */
  17. #define S_msgQDistGrpLib_INVALID_OPTION (M_msgQDistGrpLib | 2) /* error code */
  18. #define S_msgQDistGrpLib_DATABASE_FULL (M_msgQDistGrpLib | 3) /* error code */
  19. #define S_msgQDistGrpLib_NO_MATCH (M_msgQDistGrpLib | 4) /* error code */
  20. /* typedefs */
  21. typedef int DIST_GRP_OPT; /* distributed msgQ group options */
  22. /* function declarations */
  23. #if defined(__STDC__) || defined(__cplusplus)
  24. void     msgQDistGrpLibInit (void);
  25. STATUS   msgQDistGrpInit (int sizeLog2);
  26. MSG_Q_ID msgQDistGrpAdd (char *grpName, MSG_Q_ID msgQId, DIST_GRP_OPT options);
  27. STATUS   msgQDistGrpDelete (char *grpName, MSG_Q_ID msgQId);
  28. #else   /* __STDC__ */
  29. void     msgQDistGrpLibInit ();
  30. STATUS   msgQDistGrpInit ();
  31. MSG_Q_ID msgQDistGrpAdd ();
  32. STATUS   msgQDistGrpDelete ();
  33. #endif  /* __STDC__ */
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* __INCmsgQDistGrpLibh */