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