中航光电的中间件仓库

cslib.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**********************************************************************/
  2. /* EhangCom: API Head file
  3. *
  4. * FILE: cslib.h
  5. *
  6. * DESCRIPTION: Header File for EhangCom Digital Network Interface library
  7. *
  8. * Copyright (c) EhangCom Corp. All Rights Reserved
  9. *
  10. * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF EhangCom Corp.
  11. * The copyright notice above does not evidence any actual or
  12. * intended publication of such source code.
  13. */
  14. /**********************************************************************/
  15. #ifndef __CSLIB_H__
  16. #define __CSLIB_H__
  17. #include "IsxApi.h"
  18. /*
  19. * Prototypes for all library functions.
  20. */
  21. #ifdef __cplusplus
  22. extern "C" { // C++ func bindings to enable C funcs to be called from C++
  23. #define extern
  24. #endif
  25. #if (defined (__BORLANDC__) || defined (__cplusplus) || defined( __STDC__ ))
  26. ISXAPI_FUNC_STDCL(INT) ISX_cs_close(INT dev, INT oflags = 0);
  27. ISXAPI_FUNC_STDCL(INT) ISX_cs_getxmitslot(INT, SC_TSINFO *);
  28. ISXAPI_FUNC_STDCL(INT) ISX_cs_listen(INT, SC_TSINFO *);
  29. ISXAPI_FUNC_STDCL(INT) ISX_cs_open(CHAR nodeno, SHORT channel, VOID* pusrattr = 0);
  30. ISXAPI_FUNC_STDCL(INT) ISX_cs_unlisten(INT);
  31. ISXAPI_FUNC_STDCL(INT) ISX_cs_GetUsrAttr(INT dev, VOID **usr_attrp);
  32. ISXAPI_FUNC_STDCL(INT) ISX_cs_SetUsrAttr(INT dev, VOID *usr_attr);
  33. #endif
  34. #ifdef __cplusplus
  35. }
  36. #undef extern
  37. #endif
  38. #endif