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

VxWorks

开发平台:

C/C++

  1. /* muxTkLib.h - definitions for muxTkLib.c */
  2. /* Copyright 1984-2001 Wind River Systems, Inc. */
  3. /* 
  4. modification history
  5. --------------------
  6. 01j,10oct01,rae  merge from truestack (add muxTkCookieGet)
  7. 01i,16oct00,niq  Integrating T3 DHCP
  8. 01h,29apr99,pul  Upgraded NPT phase3 code to tor2.0.0
  9. 01g,30mar99,pul  removed all muxMCastMap and muxSvcFunc function declarations
  10. 01f,24feb99,sj   added muxTkPollReceive
  11. 01e,23feb99,sj   added spare data last argument for muxTkSend and muxTkPollSend
  12. 01d,06nov98,sj   removed prototypes for muxTkReceive and nptHookRtn
  13. 01c,27oct98,pul  changed nptHookRtn declaration to return STATUS.
  14. 01b,09oct98,sj   fixed bad prototype for muxMCastMapFuncGet
  15. 01a,07oct98,pul  written.
  16. */
  17. /*
  18. DESCRIPTION
  19. This file includes function prototypes for the MUX.
  20. INCLUDE FILES: muxLib.h
  21. */
  22. #ifndef __INCmuxTkLibh
  23. #define __INCmuxTkLibh
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* includes */
  28. #include "muxLib.h"
  29. /* defines */
  30. /* typedefs */
  31. /* locals */
  32. /* globals */ 
  33. IMPORT int muxMaxBinds;
  34. /* forward declarations */
  35. /* Toolkit functions */
  36. IMPORT STATUS muxTkLibInit (void);
  37. IMPORT int muxTkDrvCheck (char * pDevName);
  38. IMPORT void *  muxTkBind (char * pName, int unit,
  39.           BOOL (*stackRcvRtn) (void *, long, M_BLK_ID, void *),
  40.           STATUS (*stackShutdownRtn) (void *),
  41.           STATUS (*stackTxRestartRtn) (void *),
  42.           void (*stackErrorRtn) (void *, END_ERR *),
  43.           long type, char * pProtoName, void * pNetSvcStruct,
  44.           void * pNetSvcInfo, void * pNetDrvInfo);
  45. IMPORT STATUS muxTkSend (void * pCookie, M_BLK_ID pNBuff, char *,
  46.                          USHORT, void *);
  47. IMPORT STATUS muxTkPollSend (void * pCookie, M_BLK_ID pNBuff, char *,
  48.                              USHORT, void *);
  49. IMPORT STATUS muxTkPollReceive (void * pCookie, M_BLK_ID pNBuff, void *pSpare);
  50. IMPORT STATUS muxTkPollReceive2 (void *, M_BLK_ID  pNBuff);
  51. IMPORT void * muxTkCookieGet (char *, int);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* __INCmuxTkLibh */