speechd-so_wrap.c 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. // This file is generated. Do not edit!
  2. // see https://github.com/hpvb/dynload-wrapper for details
  3. // generated by generate-wrapper.py 0.3 on 2023-01-12 10:07:46
  4. // flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/speechd/libspeechd.h --sys-include "thirdparty/linuxbsd_headers/speechd/libspeechd.h" --soname libspeechd.so.2 --init-name speechd --omit-prefix spd_get_client_list --output-header ./platform/linuxbsd/speechd-so_wrap.h --output-implementation ./platform/linuxbsd/speechd-so_wrap.c
  5. //
  6. #include <stdint.h>
  7. #define SPDConnectionAddress__free SPDConnectionAddress__free_dylibloader_orig_speechd
  8. #define spd_get_default_address spd_get_default_address_dylibloader_orig_speechd
  9. #define spd_open spd_open_dylibloader_orig_speechd
  10. #define spd_open2 spd_open2_dylibloader_orig_speechd
  11. #define spd_close spd_close_dylibloader_orig_speechd
  12. #define spd_say spd_say_dylibloader_orig_speechd
  13. #define spd_sayf spd_sayf_dylibloader_orig_speechd
  14. #define spd_stop spd_stop_dylibloader_orig_speechd
  15. #define spd_stop_all spd_stop_all_dylibloader_orig_speechd
  16. #define spd_stop_uid spd_stop_uid_dylibloader_orig_speechd
  17. #define spd_cancel spd_cancel_dylibloader_orig_speechd
  18. #define spd_cancel_all spd_cancel_all_dylibloader_orig_speechd
  19. #define spd_cancel_uid spd_cancel_uid_dylibloader_orig_speechd
  20. #define spd_pause spd_pause_dylibloader_orig_speechd
  21. #define spd_pause_all spd_pause_all_dylibloader_orig_speechd
  22. #define spd_pause_uid spd_pause_uid_dylibloader_orig_speechd
  23. #define spd_resume spd_resume_dylibloader_orig_speechd
  24. #define spd_resume_all spd_resume_all_dylibloader_orig_speechd
  25. #define spd_resume_uid spd_resume_uid_dylibloader_orig_speechd
  26. #define spd_key spd_key_dylibloader_orig_speechd
  27. #define spd_char spd_char_dylibloader_orig_speechd
  28. #define spd_wchar spd_wchar_dylibloader_orig_speechd
  29. #define spd_sound_icon spd_sound_icon_dylibloader_orig_speechd
  30. #define spd_set_voice_type spd_set_voice_type_dylibloader_orig_speechd
  31. #define spd_set_voice_type_all spd_set_voice_type_all_dylibloader_orig_speechd
  32. #define spd_set_voice_type_uid spd_set_voice_type_uid_dylibloader_orig_speechd
  33. #define spd_get_voice_type spd_get_voice_type_dylibloader_orig_speechd
  34. #define spd_set_synthesis_voice spd_set_synthesis_voice_dylibloader_orig_speechd
  35. #define spd_set_synthesis_voice_all spd_set_synthesis_voice_all_dylibloader_orig_speechd
  36. #define spd_set_synthesis_voice_uid spd_set_synthesis_voice_uid_dylibloader_orig_speechd
  37. #define spd_set_data_mode spd_set_data_mode_dylibloader_orig_speechd
  38. #define spd_set_notification_on spd_set_notification_on_dylibloader_orig_speechd
  39. #define spd_set_notification_off spd_set_notification_off_dylibloader_orig_speechd
  40. #define spd_set_notification spd_set_notification_dylibloader_orig_speechd
  41. #define spd_set_voice_rate spd_set_voice_rate_dylibloader_orig_speechd
  42. #define spd_set_voice_rate_all spd_set_voice_rate_all_dylibloader_orig_speechd
  43. #define spd_set_voice_rate_uid spd_set_voice_rate_uid_dylibloader_orig_speechd
  44. #define spd_get_voice_rate spd_get_voice_rate_dylibloader_orig_speechd
  45. #define spd_set_voice_pitch spd_set_voice_pitch_dylibloader_orig_speechd
  46. #define spd_set_voice_pitch_all spd_set_voice_pitch_all_dylibloader_orig_speechd
  47. #define spd_set_voice_pitch_uid spd_set_voice_pitch_uid_dylibloader_orig_speechd
  48. #define spd_get_voice_pitch spd_get_voice_pitch_dylibloader_orig_speechd
  49. #define spd_set_volume spd_set_volume_dylibloader_orig_speechd
  50. #define spd_set_volume_all spd_set_volume_all_dylibloader_orig_speechd
  51. #define spd_set_volume_uid spd_set_volume_uid_dylibloader_orig_speechd
  52. #define spd_get_volume spd_get_volume_dylibloader_orig_speechd
  53. #define spd_set_punctuation spd_set_punctuation_dylibloader_orig_speechd
  54. #define spd_set_punctuation_all spd_set_punctuation_all_dylibloader_orig_speechd
  55. #define spd_set_punctuation_uid spd_set_punctuation_uid_dylibloader_orig_speechd
  56. #define spd_set_capital_letters spd_set_capital_letters_dylibloader_orig_speechd
  57. #define spd_set_capital_letters_all spd_set_capital_letters_all_dylibloader_orig_speechd
  58. #define spd_set_capital_letters_uid spd_set_capital_letters_uid_dylibloader_orig_speechd
  59. #define spd_set_spelling spd_set_spelling_dylibloader_orig_speechd
  60. #define spd_set_spelling_all spd_set_spelling_all_dylibloader_orig_speechd
  61. #define spd_set_spelling_uid spd_set_spelling_uid_dylibloader_orig_speechd
  62. #define spd_set_language spd_set_language_dylibloader_orig_speechd
  63. #define spd_set_language_all spd_set_language_all_dylibloader_orig_speechd
  64. #define spd_set_language_uid spd_set_language_uid_dylibloader_orig_speechd
  65. #define spd_get_language spd_get_language_dylibloader_orig_speechd
  66. #define spd_set_output_module spd_set_output_module_dylibloader_orig_speechd
  67. #define spd_set_output_module_all spd_set_output_module_all_dylibloader_orig_speechd
  68. #define spd_set_output_module_uid spd_set_output_module_uid_dylibloader_orig_speechd
  69. #define spd_get_message_list_fd spd_get_message_list_fd_dylibloader_orig_speechd
  70. #define spd_list_modules spd_list_modules_dylibloader_orig_speechd
  71. #define free_spd_modules free_spd_modules_dylibloader_orig_speechd
  72. #define spd_get_output_module spd_get_output_module_dylibloader_orig_speechd
  73. #define spd_list_voices spd_list_voices_dylibloader_orig_speechd
  74. #define spd_list_synthesis_voices spd_list_synthesis_voices_dylibloader_orig_speechd
  75. #define free_spd_voices free_spd_voices_dylibloader_orig_speechd
  76. #define spd_execute_command_with_list_reply spd_execute_command_with_list_reply_dylibloader_orig_speechd
  77. #define spd_execute_command spd_execute_command_dylibloader_orig_speechd
  78. #define spd_execute_command_with_reply spd_execute_command_with_reply_dylibloader_orig_speechd
  79. #define spd_execute_command_wo_mutex spd_execute_command_wo_mutex_dylibloader_orig_speechd
  80. #define spd_send_data spd_send_data_dylibloader_orig_speechd
  81. #define spd_send_data_wo_mutex spd_send_data_wo_mutex_dylibloader_orig_speechd
  82. #include "thirdparty/linuxbsd_headers/speechd/libspeechd.h"
  83. #undef SPDConnectionAddress__free
  84. #undef spd_get_default_address
  85. #undef spd_open
  86. #undef spd_open2
  87. #undef spd_close
  88. #undef spd_say
  89. #undef spd_sayf
  90. #undef spd_stop
  91. #undef spd_stop_all
  92. #undef spd_stop_uid
  93. #undef spd_cancel
  94. #undef spd_cancel_all
  95. #undef spd_cancel_uid
  96. #undef spd_pause
  97. #undef spd_pause_all
  98. #undef spd_pause_uid
  99. #undef spd_resume
  100. #undef spd_resume_all
  101. #undef spd_resume_uid
  102. #undef spd_key
  103. #undef spd_char
  104. #undef spd_wchar
  105. #undef spd_sound_icon
  106. #undef spd_set_voice_type
  107. #undef spd_set_voice_type_all
  108. #undef spd_set_voice_type_uid
  109. #undef spd_get_voice_type
  110. #undef spd_set_synthesis_voice
  111. #undef spd_set_synthesis_voice_all
  112. #undef spd_set_synthesis_voice_uid
  113. #undef spd_set_data_mode
  114. #undef spd_set_notification_on
  115. #undef spd_set_notification_off
  116. #undef spd_set_notification
  117. #undef spd_set_voice_rate
  118. #undef spd_set_voice_rate_all
  119. #undef spd_set_voice_rate_uid
  120. #undef spd_get_voice_rate
  121. #undef spd_set_voice_pitch
  122. #undef spd_set_voice_pitch_all
  123. #undef spd_set_voice_pitch_uid
  124. #undef spd_get_voice_pitch
  125. #undef spd_set_volume
  126. #undef spd_set_volume_all
  127. #undef spd_set_volume_uid
  128. #undef spd_get_volume
  129. #undef spd_set_punctuation
  130. #undef spd_set_punctuation_all
  131. #undef spd_set_punctuation_uid
  132. #undef spd_set_capital_letters
  133. #undef spd_set_capital_letters_all
  134. #undef spd_set_capital_letters_uid
  135. #undef spd_set_spelling
  136. #undef spd_set_spelling_all
  137. #undef spd_set_spelling_uid
  138. #undef spd_set_language
  139. #undef spd_set_language_all
  140. #undef spd_set_language_uid
  141. #undef spd_get_language
  142. #undef spd_set_output_module
  143. #undef spd_set_output_module_all
  144. #undef spd_set_output_module_uid
  145. #undef spd_get_message_list_fd
  146. #undef spd_list_modules
  147. #undef free_spd_modules
  148. #undef spd_get_output_module
  149. #undef spd_list_voices
  150. #undef spd_list_synthesis_voices
  151. #undef free_spd_voices
  152. #undef spd_execute_command_with_list_reply
  153. #undef spd_execute_command
  154. #undef spd_execute_command_with_reply
  155. #undef spd_execute_command_wo_mutex
  156. #undef spd_send_data
  157. #undef spd_send_data_wo_mutex
  158. #include <dlfcn.h>
  159. #include <stdio.h>
  160. void (*SPDConnectionAddress__free_dylibloader_wrapper_speechd)( SPDConnectionAddress*);
  161. SPDConnectionAddress* (*spd_get_default_address_dylibloader_wrapper_speechd)( char**);
  162. SPDConnection* (*spd_open_dylibloader_wrapper_speechd)(const char*,const char*,const char*, SPDConnectionMode);
  163. SPDConnection* (*spd_open2_dylibloader_wrapper_speechd)(const char*,const char*,const char*, SPDConnectionMode, SPDConnectionAddress*, int, char**);
  164. void (*spd_close_dylibloader_wrapper_speechd)( SPDConnection*);
  165. int (*spd_say_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
  166. int (*spd_sayf_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*,...);
  167. int (*spd_stop_dylibloader_wrapper_speechd)( SPDConnection*);
  168. int (*spd_stop_all_dylibloader_wrapper_speechd)( SPDConnection*);
  169. int (*spd_stop_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
  170. int (*spd_cancel_dylibloader_wrapper_speechd)( SPDConnection*);
  171. int (*spd_cancel_all_dylibloader_wrapper_speechd)( SPDConnection*);
  172. int (*spd_cancel_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
  173. int (*spd_pause_dylibloader_wrapper_speechd)( SPDConnection*);
  174. int (*spd_pause_all_dylibloader_wrapper_speechd)( SPDConnection*);
  175. int (*spd_pause_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
  176. int (*spd_resume_dylibloader_wrapper_speechd)( SPDConnection*);
  177. int (*spd_resume_all_dylibloader_wrapper_speechd)( SPDConnection*);
  178. int (*spd_resume_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
  179. int (*spd_key_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
  180. int (*spd_char_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
  181. int (*spd_wchar_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority, wchar_t);
  182. int (*spd_sound_icon_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
  183. int (*spd_set_voice_type_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType);
  184. int (*spd_set_voice_type_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType);
  185. int (*spd_set_voice_type_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType, unsigned int);
  186. SPDVoiceType (*spd_get_voice_type_dylibloader_wrapper_speechd)( SPDConnection*);
  187. int (*spd_set_synthesis_voice_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  188. int (*spd_set_synthesis_voice_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  189. int (*spd_set_synthesis_voice_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
  190. int (*spd_set_data_mode_dylibloader_wrapper_speechd)( SPDConnection*, SPDDataMode);
  191. int (*spd_set_notification_on_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification);
  192. int (*spd_set_notification_off_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification);
  193. int (*spd_set_notification_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification,const char*);
  194. int (*spd_set_voice_rate_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  195. int (*spd_set_voice_rate_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  196. int (*spd_set_voice_rate_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
  197. int (*spd_get_voice_rate_dylibloader_wrapper_speechd)( SPDConnection*);
  198. int (*spd_set_voice_pitch_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  199. int (*spd_set_voice_pitch_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  200. int (*spd_set_voice_pitch_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
  201. int (*spd_get_voice_pitch_dylibloader_wrapper_speechd)( SPDConnection*);
  202. int (*spd_set_volume_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  203. int (*spd_set_volume_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
  204. int (*spd_set_volume_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
  205. int (*spd_get_volume_dylibloader_wrapper_speechd)( SPDConnection*);
  206. int (*spd_set_punctuation_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation);
  207. int (*spd_set_punctuation_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation);
  208. int (*spd_set_punctuation_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation, unsigned int);
  209. int (*spd_set_capital_letters_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters);
  210. int (*spd_set_capital_letters_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters);
  211. int (*spd_set_capital_letters_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters, unsigned int);
  212. int (*spd_set_spelling_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling);
  213. int (*spd_set_spelling_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling);
  214. int (*spd_set_spelling_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling, unsigned int);
  215. int (*spd_set_language_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  216. int (*spd_set_language_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  217. int (*spd_set_language_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
  218. char* (*spd_get_language_dylibloader_wrapper_speechd)( SPDConnection*);
  219. int (*spd_set_output_module_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  220. int (*spd_set_output_module_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
  221. int (*spd_set_output_module_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
  222. int (*spd_get_message_list_fd_dylibloader_wrapper_speechd)( SPDConnection*, int, int*, char**);
  223. char** (*spd_list_modules_dylibloader_wrapper_speechd)( SPDConnection*);
  224. void (*free_spd_modules_dylibloader_wrapper_speechd)( char**);
  225. char* (*spd_get_output_module_dylibloader_wrapper_speechd)( SPDConnection*);
  226. char** (*spd_list_voices_dylibloader_wrapper_speechd)( SPDConnection*);
  227. SPDVoice** (*spd_list_synthesis_voices_dylibloader_wrapper_speechd)( SPDConnection*);
  228. void (*free_spd_voices_dylibloader_wrapper_speechd)( SPDVoice**);
  229. char** (*spd_execute_command_with_list_reply_dylibloader_wrapper_speechd)( SPDConnection*, char*);
  230. int (*spd_execute_command_dylibloader_wrapper_speechd)( SPDConnection*, char*);
  231. int (*spd_execute_command_with_reply_dylibloader_wrapper_speechd)( SPDConnection*, char*, char**);
  232. int (*spd_execute_command_wo_mutex_dylibloader_wrapper_speechd)( SPDConnection*, char*);
  233. char* (*spd_send_data_dylibloader_wrapper_speechd)( SPDConnection*,const char*, int);
  234. char* (*spd_send_data_wo_mutex_dylibloader_wrapper_speechd)( SPDConnection*,const char*, int);
  235. int initialize_speechd(int verbose) {
  236. void *handle;
  237. char *error;
  238. handle = dlopen("libspeechd.so.2", RTLD_LAZY);
  239. if (!handle) {
  240. if (verbose) {
  241. fprintf(stderr, "%s\n", dlerror());
  242. }
  243. return(1);
  244. }
  245. dlerror();
  246. // SPDConnectionAddress__free
  247. *(void **) (&SPDConnectionAddress__free_dylibloader_wrapper_speechd) = dlsym(handle, "SPDConnectionAddress__free");
  248. if (verbose) {
  249. error = dlerror();
  250. if (error != NULL) {
  251. fprintf(stderr, "%s\n", error);
  252. }
  253. }
  254. // spd_get_default_address
  255. *(void **) (&spd_get_default_address_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_default_address");
  256. if (verbose) {
  257. error = dlerror();
  258. if (error != NULL) {
  259. fprintf(stderr, "%s\n", error);
  260. }
  261. }
  262. // spd_open
  263. *(void **) (&spd_open_dylibloader_wrapper_speechd) = dlsym(handle, "spd_open");
  264. if (verbose) {
  265. error = dlerror();
  266. if (error != NULL) {
  267. fprintf(stderr, "%s\n", error);
  268. }
  269. }
  270. // spd_open2
  271. *(void **) (&spd_open2_dylibloader_wrapper_speechd) = dlsym(handle, "spd_open2");
  272. if (verbose) {
  273. error = dlerror();
  274. if (error != NULL) {
  275. fprintf(stderr, "%s\n", error);
  276. }
  277. }
  278. // spd_close
  279. *(void **) (&spd_close_dylibloader_wrapper_speechd) = dlsym(handle, "spd_close");
  280. if (verbose) {
  281. error = dlerror();
  282. if (error != NULL) {
  283. fprintf(stderr, "%s\n", error);
  284. }
  285. }
  286. // spd_say
  287. *(void **) (&spd_say_dylibloader_wrapper_speechd) = dlsym(handle, "spd_say");
  288. if (verbose) {
  289. error = dlerror();
  290. if (error != NULL) {
  291. fprintf(stderr, "%s\n", error);
  292. }
  293. }
  294. // spd_sayf
  295. *(void **) (&spd_sayf_dylibloader_wrapper_speechd) = dlsym(handle, "spd_sayf");
  296. if (verbose) {
  297. error = dlerror();
  298. if (error != NULL) {
  299. fprintf(stderr, "%s\n", error);
  300. }
  301. }
  302. // spd_stop
  303. *(void **) (&spd_stop_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop");
  304. if (verbose) {
  305. error = dlerror();
  306. if (error != NULL) {
  307. fprintf(stderr, "%s\n", error);
  308. }
  309. }
  310. // spd_stop_all
  311. *(void **) (&spd_stop_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop_all");
  312. if (verbose) {
  313. error = dlerror();
  314. if (error != NULL) {
  315. fprintf(stderr, "%s\n", error);
  316. }
  317. }
  318. // spd_stop_uid
  319. *(void **) (&spd_stop_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop_uid");
  320. if (verbose) {
  321. error = dlerror();
  322. if (error != NULL) {
  323. fprintf(stderr, "%s\n", error);
  324. }
  325. }
  326. // spd_cancel
  327. *(void **) (&spd_cancel_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel");
  328. if (verbose) {
  329. error = dlerror();
  330. if (error != NULL) {
  331. fprintf(stderr, "%s\n", error);
  332. }
  333. }
  334. // spd_cancel_all
  335. *(void **) (&spd_cancel_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel_all");
  336. if (verbose) {
  337. error = dlerror();
  338. if (error != NULL) {
  339. fprintf(stderr, "%s\n", error);
  340. }
  341. }
  342. // spd_cancel_uid
  343. *(void **) (&spd_cancel_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel_uid");
  344. if (verbose) {
  345. error = dlerror();
  346. if (error != NULL) {
  347. fprintf(stderr, "%s\n", error);
  348. }
  349. }
  350. // spd_pause
  351. *(void **) (&spd_pause_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause");
  352. if (verbose) {
  353. error = dlerror();
  354. if (error != NULL) {
  355. fprintf(stderr, "%s\n", error);
  356. }
  357. }
  358. // spd_pause_all
  359. *(void **) (&spd_pause_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause_all");
  360. if (verbose) {
  361. error = dlerror();
  362. if (error != NULL) {
  363. fprintf(stderr, "%s\n", error);
  364. }
  365. }
  366. // spd_pause_uid
  367. *(void **) (&spd_pause_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause_uid");
  368. if (verbose) {
  369. error = dlerror();
  370. if (error != NULL) {
  371. fprintf(stderr, "%s\n", error);
  372. }
  373. }
  374. // spd_resume
  375. *(void **) (&spd_resume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume");
  376. if (verbose) {
  377. error = dlerror();
  378. if (error != NULL) {
  379. fprintf(stderr, "%s\n", error);
  380. }
  381. }
  382. // spd_resume_all
  383. *(void **) (&spd_resume_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume_all");
  384. if (verbose) {
  385. error = dlerror();
  386. if (error != NULL) {
  387. fprintf(stderr, "%s\n", error);
  388. }
  389. }
  390. // spd_resume_uid
  391. *(void **) (&spd_resume_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume_uid");
  392. if (verbose) {
  393. error = dlerror();
  394. if (error != NULL) {
  395. fprintf(stderr, "%s\n", error);
  396. }
  397. }
  398. // spd_key
  399. *(void **) (&spd_key_dylibloader_wrapper_speechd) = dlsym(handle, "spd_key");
  400. if (verbose) {
  401. error = dlerror();
  402. if (error != NULL) {
  403. fprintf(stderr, "%s\n", error);
  404. }
  405. }
  406. // spd_char
  407. *(void **) (&spd_char_dylibloader_wrapper_speechd) = dlsym(handle, "spd_char");
  408. if (verbose) {
  409. error = dlerror();
  410. if (error != NULL) {
  411. fprintf(stderr, "%s\n", error);
  412. }
  413. }
  414. // spd_wchar
  415. *(void **) (&spd_wchar_dylibloader_wrapper_speechd) = dlsym(handle, "spd_wchar");
  416. if (verbose) {
  417. error = dlerror();
  418. if (error != NULL) {
  419. fprintf(stderr, "%s\n", error);
  420. }
  421. }
  422. // spd_sound_icon
  423. *(void **) (&spd_sound_icon_dylibloader_wrapper_speechd) = dlsym(handle, "spd_sound_icon");
  424. if (verbose) {
  425. error = dlerror();
  426. if (error != NULL) {
  427. fprintf(stderr, "%s\n", error);
  428. }
  429. }
  430. // spd_set_voice_type
  431. *(void **) (&spd_set_voice_type_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type");
  432. if (verbose) {
  433. error = dlerror();
  434. if (error != NULL) {
  435. fprintf(stderr, "%s\n", error);
  436. }
  437. }
  438. // spd_set_voice_type_all
  439. *(void **) (&spd_set_voice_type_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type_all");
  440. if (verbose) {
  441. error = dlerror();
  442. if (error != NULL) {
  443. fprintf(stderr, "%s\n", error);
  444. }
  445. }
  446. // spd_set_voice_type_uid
  447. *(void **) (&spd_set_voice_type_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type_uid");
  448. if (verbose) {
  449. error = dlerror();
  450. if (error != NULL) {
  451. fprintf(stderr, "%s\n", error);
  452. }
  453. }
  454. // spd_get_voice_type
  455. *(void **) (&spd_get_voice_type_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_type");
  456. if (verbose) {
  457. error = dlerror();
  458. if (error != NULL) {
  459. fprintf(stderr, "%s\n", error);
  460. }
  461. }
  462. // spd_set_synthesis_voice
  463. *(void **) (&spd_set_synthesis_voice_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice");
  464. if (verbose) {
  465. error = dlerror();
  466. if (error != NULL) {
  467. fprintf(stderr, "%s\n", error);
  468. }
  469. }
  470. // spd_set_synthesis_voice_all
  471. *(void **) (&spd_set_synthesis_voice_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice_all");
  472. if (verbose) {
  473. error = dlerror();
  474. if (error != NULL) {
  475. fprintf(stderr, "%s\n", error);
  476. }
  477. }
  478. // spd_set_synthesis_voice_uid
  479. *(void **) (&spd_set_synthesis_voice_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice_uid");
  480. if (verbose) {
  481. error = dlerror();
  482. if (error != NULL) {
  483. fprintf(stderr, "%s\n", error);
  484. }
  485. }
  486. // spd_set_data_mode
  487. *(void **) (&spd_set_data_mode_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_data_mode");
  488. if (verbose) {
  489. error = dlerror();
  490. if (error != NULL) {
  491. fprintf(stderr, "%s\n", error);
  492. }
  493. }
  494. // spd_set_notification_on
  495. *(void **) (&spd_set_notification_on_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification_on");
  496. if (verbose) {
  497. error = dlerror();
  498. if (error != NULL) {
  499. fprintf(stderr, "%s\n", error);
  500. }
  501. }
  502. // spd_set_notification_off
  503. *(void **) (&spd_set_notification_off_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification_off");
  504. if (verbose) {
  505. error = dlerror();
  506. if (error != NULL) {
  507. fprintf(stderr, "%s\n", error);
  508. }
  509. }
  510. // spd_set_notification
  511. *(void **) (&spd_set_notification_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification");
  512. if (verbose) {
  513. error = dlerror();
  514. if (error != NULL) {
  515. fprintf(stderr, "%s\n", error);
  516. }
  517. }
  518. // spd_set_voice_rate
  519. *(void **) (&spd_set_voice_rate_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate");
  520. if (verbose) {
  521. error = dlerror();
  522. if (error != NULL) {
  523. fprintf(stderr, "%s\n", error);
  524. }
  525. }
  526. // spd_set_voice_rate_all
  527. *(void **) (&spd_set_voice_rate_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate_all");
  528. if (verbose) {
  529. error = dlerror();
  530. if (error != NULL) {
  531. fprintf(stderr, "%s\n", error);
  532. }
  533. }
  534. // spd_set_voice_rate_uid
  535. *(void **) (&spd_set_voice_rate_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate_uid");
  536. if (verbose) {
  537. error = dlerror();
  538. if (error != NULL) {
  539. fprintf(stderr, "%s\n", error);
  540. }
  541. }
  542. // spd_get_voice_rate
  543. *(void **) (&spd_get_voice_rate_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_rate");
  544. if (verbose) {
  545. error = dlerror();
  546. if (error != NULL) {
  547. fprintf(stderr, "%s\n", error);
  548. }
  549. }
  550. // spd_set_voice_pitch
  551. *(void **) (&spd_set_voice_pitch_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch");
  552. if (verbose) {
  553. error = dlerror();
  554. if (error != NULL) {
  555. fprintf(stderr, "%s\n", error);
  556. }
  557. }
  558. // spd_set_voice_pitch_all
  559. *(void **) (&spd_set_voice_pitch_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch_all");
  560. if (verbose) {
  561. error = dlerror();
  562. if (error != NULL) {
  563. fprintf(stderr, "%s\n", error);
  564. }
  565. }
  566. // spd_set_voice_pitch_uid
  567. *(void **) (&spd_set_voice_pitch_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch_uid");
  568. if (verbose) {
  569. error = dlerror();
  570. if (error != NULL) {
  571. fprintf(stderr, "%s\n", error);
  572. }
  573. }
  574. // spd_get_voice_pitch
  575. *(void **) (&spd_get_voice_pitch_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_pitch");
  576. if (verbose) {
  577. error = dlerror();
  578. if (error != NULL) {
  579. fprintf(stderr, "%s\n", error);
  580. }
  581. }
  582. // spd_set_volume
  583. *(void **) (&spd_set_volume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume");
  584. if (verbose) {
  585. error = dlerror();
  586. if (error != NULL) {
  587. fprintf(stderr, "%s\n", error);
  588. }
  589. }
  590. // spd_set_volume_all
  591. *(void **) (&spd_set_volume_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume_all");
  592. if (verbose) {
  593. error = dlerror();
  594. if (error != NULL) {
  595. fprintf(stderr, "%s\n", error);
  596. }
  597. }
  598. // spd_set_volume_uid
  599. *(void **) (&spd_set_volume_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume_uid");
  600. if (verbose) {
  601. error = dlerror();
  602. if (error != NULL) {
  603. fprintf(stderr, "%s\n", error);
  604. }
  605. }
  606. // spd_get_volume
  607. *(void **) (&spd_get_volume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_volume");
  608. if (verbose) {
  609. error = dlerror();
  610. if (error != NULL) {
  611. fprintf(stderr, "%s\n", error);
  612. }
  613. }
  614. // spd_set_punctuation
  615. *(void **) (&spd_set_punctuation_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation");
  616. if (verbose) {
  617. error = dlerror();
  618. if (error != NULL) {
  619. fprintf(stderr, "%s\n", error);
  620. }
  621. }
  622. // spd_set_punctuation_all
  623. *(void **) (&spd_set_punctuation_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation_all");
  624. if (verbose) {
  625. error = dlerror();
  626. if (error != NULL) {
  627. fprintf(stderr, "%s\n", error);
  628. }
  629. }
  630. // spd_set_punctuation_uid
  631. *(void **) (&spd_set_punctuation_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation_uid");
  632. if (verbose) {
  633. error = dlerror();
  634. if (error != NULL) {
  635. fprintf(stderr, "%s\n", error);
  636. }
  637. }
  638. // spd_set_capital_letters
  639. *(void **) (&spd_set_capital_letters_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters");
  640. if (verbose) {
  641. error = dlerror();
  642. if (error != NULL) {
  643. fprintf(stderr, "%s\n", error);
  644. }
  645. }
  646. // spd_set_capital_letters_all
  647. *(void **) (&spd_set_capital_letters_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters_all");
  648. if (verbose) {
  649. error = dlerror();
  650. if (error != NULL) {
  651. fprintf(stderr, "%s\n", error);
  652. }
  653. }
  654. // spd_set_capital_letters_uid
  655. *(void **) (&spd_set_capital_letters_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters_uid");
  656. if (verbose) {
  657. error = dlerror();
  658. if (error != NULL) {
  659. fprintf(stderr, "%s\n", error);
  660. }
  661. }
  662. // spd_set_spelling
  663. *(void **) (&spd_set_spelling_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling");
  664. if (verbose) {
  665. error = dlerror();
  666. if (error != NULL) {
  667. fprintf(stderr, "%s\n", error);
  668. }
  669. }
  670. // spd_set_spelling_all
  671. *(void **) (&spd_set_spelling_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling_all");
  672. if (verbose) {
  673. error = dlerror();
  674. if (error != NULL) {
  675. fprintf(stderr, "%s\n", error);
  676. }
  677. }
  678. // spd_set_spelling_uid
  679. *(void **) (&spd_set_spelling_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling_uid");
  680. if (verbose) {
  681. error = dlerror();
  682. if (error != NULL) {
  683. fprintf(stderr, "%s\n", error);
  684. }
  685. }
  686. // spd_set_language
  687. *(void **) (&spd_set_language_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language");
  688. if (verbose) {
  689. error = dlerror();
  690. if (error != NULL) {
  691. fprintf(stderr, "%s\n", error);
  692. }
  693. }
  694. // spd_set_language_all
  695. *(void **) (&spd_set_language_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language_all");
  696. if (verbose) {
  697. error = dlerror();
  698. if (error != NULL) {
  699. fprintf(stderr, "%s\n", error);
  700. }
  701. }
  702. // spd_set_language_uid
  703. *(void **) (&spd_set_language_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language_uid");
  704. if (verbose) {
  705. error = dlerror();
  706. if (error != NULL) {
  707. fprintf(stderr, "%s\n", error);
  708. }
  709. }
  710. // spd_get_language
  711. *(void **) (&spd_get_language_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_language");
  712. if (verbose) {
  713. error = dlerror();
  714. if (error != NULL) {
  715. fprintf(stderr, "%s\n", error);
  716. }
  717. }
  718. // spd_set_output_module
  719. *(void **) (&spd_set_output_module_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module");
  720. if (verbose) {
  721. error = dlerror();
  722. if (error != NULL) {
  723. fprintf(stderr, "%s\n", error);
  724. }
  725. }
  726. // spd_set_output_module_all
  727. *(void **) (&spd_set_output_module_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module_all");
  728. if (verbose) {
  729. error = dlerror();
  730. if (error != NULL) {
  731. fprintf(stderr, "%s\n", error);
  732. }
  733. }
  734. // spd_set_output_module_uid
  735. *(void **) (&spd_set_output_module_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module_uid");
  736. if (verbose) {
  737. error = dlerror();
  738. if (error != NULL) {
  739. fprintf(stderr, "%s\n", error);
  740. }
  741. }
  742. // spd_get_message_list_fd
  743. *(void **) (&spd_get_message_list_fd_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_message_list_fd");
  744. if (verbose) {
  745. error = dlerror();
  746. if (error != NULL) {
  747. fprintf(stderr, "%s\n", error);
  748. }
  749. }
  750. // spd_list_modules
  751. *(void **) (&spd_list_modules_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_modules");
  752. if (verbose) {
  753. error = dlerror();
  754. if (error != NULL) {
  755. fprintf(stderr, "%s\n", error);
  756. }
  757. }
  758. // free_spd_modules
  759. *(void **) (&free_spd_modules_dylibloader_wrapper_speechd) = dlsym(handle, "free_spd_modules");
  760. if (verbose) {
  761. error = dlerror();
  762. if (error != NULL) {
  763. fprintf(stderr, "%s\n", error);
  764. }
  765. }
  766. // spd_get_output_module
  767. *(void **) (&spd_get_output_module_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_output_module");
  768. if (verbose) {
  769. error = dlerror();
  770. if (error != NULL) {
  771. fprintf(stderr, "%s\n", error);
  772. }
  773. }
  774. // spd_list_voices
  775. *(void **) (&spd_list_voices_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_voices");
  776. if (verbose) {
  777. error = dlerror();
  778. if (error != NULL) {
  779. fprintf(stderr, "%s\n", error);
  780. }
  781. }
  782. // spd_list_synthesis_voices
  783. *(void **) (&spd_list_synthesis_voices_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_synthesis_voices");
  784. if (verbose) {
  785. error = dlerror();
  786. if (error != NULL) {
  787. fprintf(stderr, "%s\n", error);
  788. }
  789. }
  790. // free_spd_voices
  791. *(void **) (&free_spd_voices_dylibloader_wrapper_speechd) = dlsym(handle, "free_spd_voices");
  792. if (verbose) {
  793. error = dlerror();
  794. if (error != NULL) {
  795. fprintf(stderr, "%s\n", error);
  796. }
  797. }
  798. // spd_execute_command_with_list_reply
  799. *(void **) (&spd_execute_command_with_list_reply_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_with_list_reply");
  800. if (verbose) {
  801. error = dlerror();
  802. if (error != NULL) {
  803. fprintf(stderr, "%s\n", error);
  804. }
  805. }
  806. // spd_execute_command
  807. *(void **) (&spd_execute_command_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command");
  808. if (verbose) {
  809. error = dlerror();
  810. if (error != NULL) {
  811. fprintf(stderr, "%s\n", error);
  812. }
  813. }
  814. // spd_execute_command_with_reply
  815. *(void **) (&spd_execute_command_with_reply_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_with_reply");
  816. if (verbose) {
  817. error = dlerror();
  818. if (error != NULL) {
  819. fprintf(stderr, "%s\n", error);
  820. }
  821. }
  822. // spd_execute_command_wo_mutex
  823. *(void **) (&spd_execute_command_wo_mutex_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_wo_mutex");
  824. if (verbose) {
  825. error = dlerror();
  826. if (error != NULL) {
  827. fprintf(stderr, "%s\n", error);
  828. }
  829. }
  830. // spd_send_data
  831. *(void **) (&spd_send_data_dylibloader_wrapper_speechd) = dlsym(handle, "spd_send_data");
  832. if (verbose) {
  833. error = dlerror();
  834. if (error != NULL) {
  835. fprintf(stderr, "%s\n", error);
  836. }
  837. }
  838. // spd_send_data_wo_mutex
  839. *(void **) (&spd_send_data_wo_mutex_dylibloader_wrapper_speechd) = dlsym(handle, "spd_send_data_wo_mutex");
  840. if (verbose) {
  841. error = dlerror();
  842. if (error != NULL) {
  843. fprintf(stderr, "%s\n", error);
  844. }
  845. }
  846. return 0;
  847. }