home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / speech / h / smrc.h < prev   
Text File  |  1999-05-11  |  9KB  |  201 lines

  1. /*========================================================================*/
  2. /*                                                                        */
  3. /*  smrc.h                                                                */
  4. /*                                                                        */
  5. /*   (C) COPYRIGHT International Business Machines Corp. 1992,1996        */
  6. /*   All Rights Reserved                                                  */
  7. /*   Licensed Materials - Property of IBM                                 */
  8. /*   US Government Users Restricted Rights - Use, duplication or          */
  9. /*   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.    */
  10. /*                                                                        */
  11. /*========================================================================*/
  12.  
  13. #ifndef SM_RC_H_INCLUDED
  14. #define SM_RC_H_INCLUDED
  15.  
  16. /*---------------------------------------------------------------------*/
  17. /* send/receive message error codes                                    */
  18. /*---------------------------------------------------------------------*/
  19. /*---------------------------------------------------------------------*/
  20. /* SM_API_RC_MAX_NAMES should be set to the maximum absolute value     */
  21. /* used for the send/receive message error codes.                      */
  22. /*---------------------------------------------------------------------*/
  23. #define SM_API_RC_MAX_NAMES           28
  24. #define SM_API_RC_MIN_NAMES          -28
  25.  
  26. #define SM_RC_EAPIVERSION             -1
  27. #define SM_RC_ENOMSG                  -2
  28. #define SM_RC_ENOCONN                 -3
  29. #define SM_RC_ENOSERVER               -4
  30. #define SM_RC_EINVAL                  -5
  31. #define SM_RC_EUNEXP                  -6
  32. #define SM_RC_ETIMEOUT                -7
  33. #define SM_RC_EUNKMSG                 -8
  34. #define SM_RC_EMSGSIZE                -9
  35. #define SM_RC_ENOHANDLES              -10
  36. #define SM_RC_EBADHANDLE              -11
  37. #define SM_RC_ENOMEM                  -12
  38. #define SM_RC_EALLOC                  -13
  39. #define SM_RC_EBADAPPNAME             -14
  40. #define SM_RC_ENOACCEPT               -15
  41. #define SM_RC_EALLBUSY                -16
  42. #define SM_RC_CREATE_MBOX_FAILED      -17
  43. #define SM_RC_CREATE_EVENT_SEM_FAILED -18
  44. #define SM_RC_ASSOC_EVENT_SEM_FAILED  -19
  45. #define SM_RC_DEALLOCATING_SH_MEM     -20
  46. #define SM_RC_QUEUE_CLOSE_ERROR       -21
  47. #define SM_RC_FREE_MEM_ERROR          -22
  48. #define SM_RC_CLOSE_EVENT_SEM_FAILED  -23
  49. #define SM_RC_SUB_UNSET_ERROR         -24
  50. #define SM_RC_OPEN_QUEUE_FAILED       -25
  51. #define SM_RC_CREATE_MUTEX_SEM_FAILED -26
  52. #define SM_RC_ATTACH_MUTEX_SEM_FAILED -27
  53.  
  54. /*---------------------------------------------------------------------*/
  55. /* Return codes.                                                       */
  56. /*---------------------------------------------------------------------*/
  57. #define SM_RC_NOT_YET                1000
  58.  
  59. /*---------------------------------------------------------------------*/
  60. /* SM_RC_MAX_NAMES should be set to the maximum value used for return  */
  61. /* codes.                                                              */
  62. /*---------------------------------------------------------------------*/
  63. #define SM_RC_MAX_NAMES               250
  64.  
  65. #define SM_RC_OK                        0
  66. #define SM_RC_NOT_VALID_REQUEST         1
  67. #define SM_RC_BAD_MODE                  2
  68. #define SM_RC_NOT_WHILE_MIC_ON          3
  69. #define SM_RC_MIC_ALREADY_ON            4
  70. #define SM_RC_MIC_ALREADY_OFF           5
  71. #define SM_RC_MIC_ON_PENDING            6
  72. #define SM_RC_MIC_OFF_PENDING           7
  73. #define SM_RC_NOT_WHILE_PLAYING         8
  74.  
  75. #define SM_RC_BAD_AUDIO                10
  76. #define SM_RC_RECORD_OPEN_ERROR        11
  77. #define SM_RC_PLAY_OPEN_ERROR          12
  78. #define SM_RC_AUDIO_IN_USE             13
  79. #define SM_RC_BAD_AUDIO_PROTOCOL       14
  80. #define SM_RC_AUDIO_TIMEOUT            15
  81. #define SM_RC_AUDIO_DISCONNECTED       16
  82. #define SM_RC_AUDIO_OVERRUN            17
  83. #define SM_RC_AUDIO_FORCED_MIC_OFF     18
  84. #define SM_RC_NO_MORE_AUDIO_FILES      19
  85.  
  86. #define SM_RC_BAD_AP                   20
  87. #define SM_RC_BAD_DECO                 30
  88.  
  89. #define SM_RC_BAD_ADDWORD              40
  90. #define SM_RC_ADDED                    41
  91. #define SM_RC_NOT_ADDED                42
  92. #define SM_RC_MULTIPLE_SPELLINGS       43
  93. #define SM_RC_ILLEGAL_SPELLING         44
  94. #define SM_RC_ILLEGAL_SOUNDSLIKE       45
  95. #define SM_RC_MISMATCHED_ACOUSTICS     46
  96. #define SM_RC_BAD_ACOUSTICS            47
  97. #define SM_RC_SPELLING_TOO_LONG        48
  98. #define SM_RC_ACOUSTICS_TOO_LONG       49
  99. #define SM_RC_ADDWORD_LIMIT_EXCEEDED   50
  100. #define SM_RC_EXTENDED_VOCAB_ADD       51
  101.  
  102. #define SM_RC_SERVER_ERROR             60
  103. #define SM_RC_SERVER_MALLOC_ERROR      61
  104. #define SM_RC_SERVER_FILE_OPEN_ERROR   62
  105. #define SM_RC_SERVER_FILE_WRITE_ERROR  63
  106. #define SM_RC_SERVER_FILE_READ_ERROR   64
  107. #define SM_RC_SERVER_FILE_CLOSE_ERROR  65
  108. #define SM_RC_SERVER_PROCESS_ERROR     66
  109. #define SM_RC_SERVER_TERMINATED        67
  110.  
  111. #define SM_RC_BAD_TAG                  70
  112. #define SM_RC_BAD_UTTNO                71
  113. #define SM_RC_BAD_MESSAGE              72
  114.  
  115. #define SM_RC_NOT_DELETED              80
  116. #define SM_RC_NOT_INVOCAB              81
  117. #define SM_RC_INVOCAB                  82
  118. #define SM_RC_BAD_VOCAB                83
  119. #define SM_RC_MISSING_EXTERN           84
  120.  
  121. #define SM_RC_BAD_USERID               90
  122. #define SM_RC_BAD_ENROLLID             91
  123. #define SM_RC_BAD_PASSWORD             92
  124. #define SM_RC_BAD_TASKID               93
  125. #define SM_RC_BAD_CLIENT               94
  126. #define SM_RC_USERID_EXISTS            95
  127. #define SM_RC_ENROLLID_EXISTS          96
  128. #define SM_RC_USERID_BUSY              97
  129. #define SM_RC_ENROLLID_BUSY            98
  130. #define SM_RC_BAD_SCRIPT               99
  131. #define SM_RC_BAD_DESCRIPTION         100
  132. #define SM_RC_ENROLLID_RUNNING        101
  133. #define SM_RC_ENROLLMENT_NOT_COMPLETE 102
  134. #define SM_RC_MISMATCHED_LANGUAGE     103
  135. #define SM_RC_MISMATCHED_ALPHABET     104
  136. #define SM_RC_MISMATCHED_SCRIPT       105
  137. #define SM_RC_BAD_LANGUAGE            106
  138. #define SM_RC_BAD_NAME                107
  139. #define SM_RC_INVALID_WINDOW_HANDLE   108
  140.  
  141. #define SM_RC_BAD_ITEM                110
  142. #define SM_RC_BAD_VALUE               111
  143.  
  144. #define SM_RC_BUSY_LAST_UTTERANCE     120
  145. #define SM_RC_BUSY_WORD_CORRECTION    121
  146.  
  147. #define SM_RC_NO_SPACE                130
  148. #define SM_RC_NO_SPACE_INIT_RECO      131
  149. #define SM_RC_NO_SPACE_INIT_ENROLL    132
  150. #define SM_RC_NO_SPACE_TERM_ENROLL    133
  151. #define SM_RC_NO_SPACE_MIC_ON         134
  152.  
  153. #define SM_RC_INVALID_PARM_MAX_LEN    140
  154.  
  155. #define SM_RC_NO_FOCUS_APP            170
  156. #define SM_RC_FOCUS_GRANTED           171
  157. #define SM_RC_FOCUS_REQUEST_PENDING   172
  158. #define SM_RC_FOCUS_DENIED            173
  159. #define SM_RC_NAV_ALREADY_DEFINED     174
  160. #define SM_RC_NOT_IN_NOTIFY           175
  161. #define SM_RC_EXISTS_IN_NOTIFY        176
  162.  
  163. #define SM_RC_INCOMPATIBLE_ENROLLMENT 178
  164.  
  165. /*---------------------------------------------------------------------*/
  166. /* Status codes.                                                       */
  167. /*---------------------------------------------------------------------*/
  168. #define SM_STAT_PLAY_START            100
  169. #define SM_STAT_PLAY_STOP             101
  170. #define SM_STAT_BAD_AUDIO             102
  171. #define SM_STAT_BAD_TAG               103
  172. #define SM_STAT_BAD_UTTERANCE         104
  173. #define SM_STAT_BAD_MESSAGE           105
  174.  
  175. #define SM_STAT_ENROLLMENT_RECORDING  106
  176. #define SM_STAT_ENROLLMENT_RUNNING    107
  177. #define SM_STAT_ENROLLMENT_FAILED     108
  178. #define SM_STAT_ENROLLMENT_COMPLETE   109
  179. #define SM_STAT_ENROLLMENT_BUSY       110
  180.  
  181. /*---------------------------------------------------------------------*/
  182. /* Speech Manager Error codes                                          */
  183. /*---------------------------------------------------------------------*/
  184. #define SM_RC_SM_NOT_OPEN             200
  185. #define SM_RC_WRONG_SM_VERSION        201
  186. #define SM_RC_SM_NOT_ACTIVE_CLIENT    202
  187. #define SM_RC_SM_EINVAL_MSG_TYPE      203
  188. #define SM_RC_REPLY_NULL              204
  189. #define SM_RC_NO_MORE_CONNECTIONS     205
  190. #define SM_RC_NO_TOPLEVEL_WIDGET      206
  191. #define SM_RC_CONNECTION_CHANGED      207
  192. #define SM_RC_CALLBACK_LIST_CHANGED   208
  193. #define SM_RC_ASCII_ALREADY_SET       209
  194. #define SM_RC_NOTHING_TO_DISPATCH     210
  195. #define SM_RC_MAX_MSG_QUEUES_EXCEEDED 211
  196. #define SM_RC_OPEN_SYNCH_QUEUE_FAILED 214
  197. #define SM_RC_ALREADY_OPENED          215
  198. #define SM_RC_ALREADY_CONNECTED       216
  199.  
  200. #endif /* not SM_RC_H_INCLUDED */
  201.