灵云SDK开发手册(C API)  5.2
 全部 结构体 函数 变量 类型定义 枚举 枚举值  
hci_sys.h
1 
6 #ifndef _hci_sys_header_
7 #define _hci_sys_header_
8 
9 #ifdef __ANDROID__
10 #include <jni.h>
11 #endif
12 
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17 
19 /* @{ */
20 
21 /* parameter remark definition */
22 #ifndef _IN_
23 #define _IN_
24 #endif
25 #ifndef _OUT_
26 #define _OUT_
27 #endif
28 #ifndef _IN_OUT_
29 #define _IN_OUT_
30 #endif
31 #ifndef _MUST_
32 #define _MUST_
33 #endif
34 #ifndef _OPT_
35 #define _OPT_
36 #endif
37 
38 #ifdef _WIN32
39 #define HCIAPI _stdcall
40 #else
41 #define HCIAPI
42 #endif
43 
45 /* @{ */
46 
50 #if !defined _MSC_VER && !defined __BORLANDC__
51 # include <stdint.h>
52 #endif
53 
54 #if defined _MSC_VER || defined __BORLANDC__
55 typedef __int64 int64;
56 #else
57 typedef int64_t int64;
58 #endif
59 
63 #define SYS_MODULE "HCI_SYS"
64 
68 typedef enum {
95 
96  //HCI_SYS
113 
114  /* HCI_ASR */
133 
134  /* HCI_HWR */
145 
146  /* HCI_OCR */
168 
169  /* HCI_TTS */
178 
179  /* HCI_MT */
182 
183  /*HCI_NLU*/
188 
189  /*HCI_KB*/
197 
198  /*HCI_VPR*/
213 
214 
215  /*HCI_FPR*/
228 
229  /*HCI_AFR*/
249 
250  /*ASR Recorder*/
255 
256 } HCI_ERR_CODE;
257 
258 
262 typedef struct _tag_CAPABILITY_ITEM
263 {
265  char* pszCapKey;
267 
271 typedef struct _tag_CAPABILITY_LIST
272 {
275 
277  unsigned int uiItemCount;
279 
280 /* @} */
282 /* @{ */
283 
472 #ifdef __ANDROID__
473 HCI_ERR_CODE HCIAPI hci_init(
474  _MUST_ _IN_ const char * pszConfig ,
475  _MUST_ _IN_ JavaVM *vm,
476  _MUST_ _IN_ jobject context);
477 #else
478 HCI_ERR_CODE HCIAPI hci_init(
479  _MUST_ _IN_ const char * pszConfig
480  );
481 #endif
482 
499 
514  _MUST_ _OUT_ int64 * pnExpireTime
515  );
516 
517 
532  _OPT_ _IN_ const char * pszHciType,
533  _MUST_ _OUT_ CAPABILITY_LIST * psCapabilityList
534  );
535 
547  _MUST_ _IN_ CAPABILITY_LIST * psCapabilityList
548  );
549 
550 
567 
579 HCI_ERR_CODE HCIAPI hci_release();
580 
581 
589 const char * HCIAPI hci_get_error_info(HCI_ERR_CODE nErrorCode);
590 
596 const char * HCIAPI hci_get_sdk_version();
597 
598 /* @} */
599 /* @} */
601 
602 #ifdef __cplusplus
603 };
604 #endif
605 
606 #endif