123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849 |
- // This file is generated. Do not edit!
- // see https://github.com/hpvb/dynload-wrapper for details
- // generated by generate-wrapper.py 0.3 on 2023-01-12 10:07:46
- // 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
- //
- #include <stdint.h>
- #define SPDConnectionAddress__free SPDConnectionAddress__free_dylibloader_orig_speechd
- #define spd_get_default_address spd_get_default_address_dylibloader_orig_speechd
- #define spd_open spd_open_dylibloader_orig_speechd
- #define spd_open2 spd_open2_dylibloader_orig_speechd
- #define spd_close spd_close_dylibloader_orig_speechd
- #define spd_say spd_say_dylibloader_orig_speechd
- #define spd_sayf spd_sayf_dylibloader_orig_speechd
- #define spd_stop spd_stop_dylibloader_orig_speechd
- #define spd_stop_all spd_stop_all_dylibloader_orig_speechd
- #define spd_stop_uid spd_stop_uid_dylibloader_orig_speechd
- #define spd_cancel spd_cancel_dylibloader_orig_speechd
- #define spd_cancel_all spd_cancel_all_dylibloader_orig_speechd
- #define spd_cancel_uid spd_cancel_uid_dylibloader_orig_speechd
- #define spd_pause spd_pause_dylibloader_orig_speechd
- #define spd_pause_all spd_pause_all_dylibloader_orig_speechd
- #define spd_pause_uid spd_pause_uid_dylibloader_orig_speechd
- #define spd_resume spd_resume_dylibloader_orig_speechd
- #define spd_resume_all spd_resume_all_dylibloader_orig_speechd
- #define spd_resume_uid spd_resume_uid_dylibloader_orig_speechd
- #define spd_key spd_key_dylibloader_orig_speechd
- #define spd_char spd_char_dylibloader_orig_speechd
- #define spd_wchar spd_wchar_dylibloader_orig_speechd
- #define spd_sound_icon spd_sound_icon_dylibloader_orig_speechd
- #define spd_set_voice_type spd_set_voice_type_dylibloader_orig_speechd
- #define spd_set_voice_type_all spd_set_voice_type_all_dylibloader_orig_speechd
- #define spd_set_voice_type_uid spd_set_voice_type_uid_dylibloader_orig_speechd
- #define spd_get_voice_type spd_get_voice_type_dylibloader_orig_speechd
- #define spd_set_synthesis_voice spd_set_synthesis_voice_dylibloader_orig_speechd
- #define spd_set_synthesis_voice_all spd_set_synthesis_voice_all_dylibloader_orig_speechd
- #define spd_set_synthesis_voice_uid spd_set_synthesis_voice_uid_dylibloader_orig_speechd
- #define spd_set_data_mode spd_set_data_mode_dylibloader_orig_speechd
- #define spd_set_notification_on spd_set_notification_on_dylibloader_orig_speechd
- #define spd_set_notification_off spd_set_notification_off_dylibloader_orig_speechd
- #define spd_set_notification spd_set_notification_dylibloader_orig_speechd
- #define spd_set_voice_rate spd_set_voice_rate_dylibloader_orig_speechd
- #define spd_set_voice_rate_all spd_set_voice_rate_all_dylibloader_orig_speechd
- #define spd_set_voice_rate_uid spd_set_voice_rate_uid_dylibloader_orig_speechd
- #define spd_get_voice_rate spd_get_voice_rate_dylibloader_orig_speechd
- #define spd_set_voice_pitch spd_set_voice_pitch_dylibloader_orig_speechd
- #define spd_set_voice_pitch_all spd_set_voice_pitch_all_dylibloader_orig_speechd
- #define spd_set_voice_pitch_uid spd_set_voice_pitch_uid_dylibloader_orig_speechd
- #define spd_get_voice_pitch spd_get_voice_pitch_dylibloader_orig_speechd
- #define spd_set_volume spd_set_volume_dylibloader_orig_speechd
- #define spd_set_volume_all spd_set_volume_all_dylibloader_orig_speechd
- #define spd_set_volume_uid spd_set_volume_uid_dylibloader_orig_speechd
- #define spd_get_volume spd_get_volume_dylibloader_orig_speechd
- #define spd_set_punctuation spd_set_punctuation_dylibloader_orig_speechd
- #define spd_set_punctuation_all spd_set_punctuation_all_dylibloader_orig_speechd
- #define spd_set_punctuation_uid spd_set_punctuation_uid_dylibloader_orig_speechd
- #define spd_set_capital_letters spd_set_capital_letters_dylibloader_orig_speechd
- #define spd_set_capital_letters_all spd_set_capital_letters_all_dylibloader_orig_speechd
- #define spd_set_capital_letters_uid spd_set_capital_letters_uid_dylibloader_orig_speechd
- #define spd_set_spelling spd_set_spelling_dylibloader_orig_speechd
- #define spd_set_spelling_all spd_set_spelling_all_dylibloader_orig_speechd
- #define spd_set_spelling_uid spd_set_spelling_uid_dylibloader_orig_speechd
- #define spd_set_language spd_set_language_dylibloader_orig_speechd
- #define spd_set_language_all spd_set_language_all_dylibloader_orig_speechd
- #define spd_set_language_uid spd_set_language_uid_dylibloader_orig_speechd
- #define spd_get_language spd_get_language_dylibloader_orig_speechd
- #define spd_set_output_module spd_set_output_module_dylibloader_orig_speechd
- #define spd_set_output_module_all spd_set_output_module_all_dylibloader_orig_speechd
- #define spd_set_output_module_uid spd_set_output_module_uid_dylibloader_orig_speechd
- #define spd_get_message_list_fd spd_get_message_list_fd_dylibloader_orig_speechd
- #define spd_list_modules spd_list_modules_dylibloader_orig_speechd
- #define free_spd_modules free_spd_modules_dylibloader_orig_speechd
- #define spd_get_output_module spd_get_output_module_dylibloader_orig_speechd
- #define spd_list_voices spd_list_voices_dylibloader_orig_speechd
- #define spd_list_synthesis_voices spd_list_synthesis_voices_dylibloader_orig_speechd
- #define free_spd_voices free_spd_voices_dylibloader_orig_speechd
- #define spd_execute_command_with_list_reply spd_execute_command_with_list_reply_dylibloader_orig_speechd
- #define spd_execute_command spd_execute_command_dylibloader_orig_speechd
- #define spd_execute_command_with_reply spd_execute_command_with_reply_dylibloader_orig_speechd
- #define spd_execute_command_wo_mutex spd_execute_command_wo_mutex_dylibloader_orig_speechd
- #define spd_send_data spd_send_data_dylibloader_orig_speechd
- #define spd_send_data_wo_mutex spd_send_data_wo_mutex_dylibloader_orig_speechd
- #include "thirdparty/linuxbsd_headers/speechd/libspeechd.h"
- #undef SPDConnectionAddress__free
- #undef spd_get_default_address
- #undef spd_open
- #undef spd_open2
- #undef spd_close
- #undef spd_say
- #undef spd_sayf
- #undef spd_stop
- #undef spd_stop_all
- #undef spd_stop_uid
- #undef spd_cancel
- #undef spd_cancel_all
- #undef spd_cancel_uid
- #undef spd_pause
- #undef spd_pause_all
- #undef spd_pause_uid
- #undef spd_resume
- #undef spd_resume_all
- #undef spd_resume_uid
- #undef spd_key
- #undef spd_char
- #undef spd_wchar
- #undef spd_sound_icon
- #undef spd_set_voice_type
- #undef spd_set_voice_type_all
- #undef spd_set_voice_type_uid
- #undef spd_get_voice_type
- #undef spd_set_synthesis_voice
- #undef spd_set_synthesis_voice_all
- #undef spd_set_synthesis_voice_uid
- #undef spd_set_data_mode
- #undef spd_set_notification_on
- #undef spd_set_notification_off
- #undef spd_set_notification
- #undef spd_set_voice_rate
- #undef spd_set_voice_rate_all
- #undef spd_set_voice_rate_uid
- #undef spd_get_voice_rate
- #undef spd_set_voice_pitch
- #undef spd_set_voice_pitch_all
- #undef spd_set_voice_pitch_uid
- #undef spd_get_voice_pitch
- #undef spd_set_volume
- #undef spd_set_volume_all
- #undef spd_set_volume_uid
- #undef spd_get_volume
- #undef spd_set_punctuation
- #undef spd_set_punctuation_all
- #undef spd_set_punctuation_uid
- #undef spd_set_capital_letters
- #undef spd_set_capital_letters_all
- #undef spd_set_capital_letters_uid
- #undef spd_set_spelling
- #undef spd_set_spelling_all
- #undef spd_set_spelling_uid
- #undef spd_set_language
- #undef spd_set_language_all
- #undef spd_set_language_uid
- #undef spd_get_language
- #undef spd_set_output_module
- #undef spd_set_output_module_all
- #undef spd_set_output_module_uid
- #undef spd_get_message_list_fd
- #undef spd_list_modules
- #undef free_spd_modules
- #undef spd_get_output_module
- #undef spd_list_voices
- #undef spd_list_synthesis_voices
- #undef free_spd_voices
- #undef spd_execute_command_with_list_reply
- #undef spd_execute_command
- #undef spd_execute_command_with_reply
- #undef spd_execute_command_wo_mutex
- #undef spd_send_data
- #undef spd_send_data_wo_mutex
- #include <dlfcn.h>
- #include <stdio.h>
- void (*SPDConnectionAddress__free_dylibloader_wrapper_speechd)( SPDConnectionAddress*);
- SPDConnectionAddress* (*spd_get_default_address_dylibloader_wrapper_speechd)( char**);
- SPDConnection* (*spd_open_dylibloader_wrapper_speechd)(const char*,const char*,const char*, SPDConnectionMode);
- SPDConnection* (*spd_open2_dylibloader_wrapper_speechd)(const char*,const char*,const char*, SPDConnectionMode, SPDConnectionAddress*, int, char**);
- void (*spd_close_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_say_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
- int (*spd_sayf_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*,...);
- int (*spd_stop_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_stop_all_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_stop_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
- int (*spd_cancel_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_cancel_all_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_cancel_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
- int (*spd_pause_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_pause_all_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_pause_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
- int (*spd_resume_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_resume_all_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_resume_uid_dylibloader_wrapper_speechd)( SPDConnection*, int);
- int (*spd_key_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
- int (*spd_char_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
- int (*spd_wchar_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority, wchar_t);
- int (*spd_sound_icon_dylibloader_wrapper_speechd)( SPDConnection*, SPDPriority,const char*);
- int (*spd_set_voice_type_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType);
- int (*spd_set_voice_type_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType);
- int (*spd_set_voice_type_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDVoiceType, unsigned int);
- SPDVoiceType (*spd_get_voice_type_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_set_synthesis_voice_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_synthesis_voice_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_synthesis_voice_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
- int (*spd_set_data_mode_dylibloader_wrapper_speechd)( SPDConnection*, SPDDataMode);
- int (*spd_set_notification_on_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification);
- int (*spd_set_notification_off_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification);
- int (*spd_set_notification_dylibloader_wrapper_speechd)( SPDConnection*, SPDNotification,const char*);
- int (*spd_set_voice_rate_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_voice_rate_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_voice_rate_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
- int (*spd_get_voice_rate_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_set_voice_pitch_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_voice_pitch_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_voice_pitch_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
- int (*spd_get_voice_pitch_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_set_volume_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_volume_all_dylibloader_wrapper_speechd)( SPDConnection*, signed int);
- int (*spd_set_volume_uid_dylibloader_wrapper_speechd)( SPDConnection*, signed int, unsigned int);
- int (*spd_get_volume_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_set_punctuation_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation);
- int (*spd_set_punctuation_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation);
- int (*spd_set_punctuation_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDPunctuation, unsigned int);
- int (*spd_set_capital_letters_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters);
- int (*spd_set_capital_letters_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters);
- int (*spd_set_capital_letters_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDCapitalLetters, unsigned int);
- int (*spd_set_spelling_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling);
- int (*spd_set_spelling_all_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling);
- int (*spd_set_spelling_uid_dylibloader_wrapper_speechd)( SPDConnection*, SPDSpelling, unsigned int);
- int (*spd_set_language_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_language_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_language_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
- char* (*spd_get_language_dylibloader_wrapper_speechd)( SPDConnection*);
- int (*spd_set_output_module_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_output_module_all_dylibloader_wrapper_speechd)( SPDConnection*,const char*);
- int (*spd_set_output_module_uid_dylibloader_wrapper_speechd)( SPDConnection*,const char*, unsigned int);
- int (*spd_get_message_list_fd_dylibloader_wrapper_speechd)( SPDConnection*, int, int*, char**);
- char** (*spd_list_modules_dylibloader_wrapper_speechd)( SPDConnection*);
- void (*free_spd_modules_dylibloader_wrapper_speechd)( char**);
- char* (*spd_get_output_module_dylibloader_wrapper_speechd)( SPDConnection*);
- char** (*spd_list_voices_dylibloader_wrapper_speechd)( SPDConnection*);
- SPDVoice** (*spd_list_synthesis_voices_dylibloader_wrapper_speechd)( SPDConnection*);
- void (*free_spd_voices_dylibloader_wrapper_speechd)( SPDVoice**);
- char** (*spd_execute_command_with_list_reply_dylibloader_wrapper_speechd)( SPDConnection*, char*);
- int (*spd_execute_command_dylibloader_wrapper_speechd)( SPDConnection*, char*);
- int (*spd_execute_command_with_reply_dylibloader_wrapper_speechd)( SPDConnection*, char*, char**);
- int (*spd_execute_command_wo_mutex_dylibloader_wrapper_speechd)( SPDConnection*, char*);
- char* (*spd_send_data_dylibloader_wrapper_speechd)( SPDConnection*,const char*, int);
- char* (*spd_send_data_wo_mutex_dylibloader_wrapper_speechd)( SPDConnection*,const char*, int);
- int initialize_speechd(int verbose) {
- void *handle;
- char *error;
- handle = dlopen("libspeechd.so.2", RTLD_LAZY);
- if (!handle) {
- if (verbose) {
- fprintf(stderr, "%s\n", dlerror());
- }
- return(1);
- }
- dlerror();
- // SPDConnectionAddress__free
- *(void **) (&SPDConnectionAddress__free_dylibloader_wrapper_speechd) = dlsym(handle, "SPDConnectionAddress__free");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_default_address
- *(void **) (&spd_get_default_address_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_default_address");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_open
- *(void **) (&spd_open_dylibloader_wrapper_speechd) = dlsym(handle, "spd_open");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_open2
- *(void **) (&spd_open2_dylibloader_wrapper_speechd) = dlsym(handle, "spd_open2");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_close
- *(void **) (&spd_close_dylibloader_wrapper_speechd) = dlsym(handle, "spd_close");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_say
- *(void **) (&spd_say_dylibloader_wrapper_speechd) = dlsym(handle, "spd_say");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_sayf
- *(void **) (&spd_sayf_dylibloader_wrapper_speechd) = dlsym(handle, "spd_sayf");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_stop
- *(void **) (&spd_stop_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_stop_all
- *(void **) (&spd_stop_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_stop_uid
- *(void **) (&spd_stop_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_stop_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_cancel
- *(void **) (&spd_cancel_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_cancel_all
- *(void **) (&spd_cancel_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_cancel_uid
- *(void **) (&spd_cancel_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_cancel_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_pause
- *(void **) (&spd_pause_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_pause_all
- *(void **) (&spd_pause_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_pause_uid
- *(void **) (&spd_pause_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_pause_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_resume
- *(void **) (&spd_resume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_resume_all
- *(void **) (&spd_resume_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_resume_uid
- *(void **) (&spd_resume_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_resume_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_key
- *(void **) (&spd_key_dylibloader_wrapper_speechd) = dlsym(handle, "spd_key");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_char
- *(void **) (&spd_char_dylibloader_wrapper_speechd) = dlsym(handle, "spd_char");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_wchar
- *(void **) (&spd_wchar_dylibloader_wrapper_speechd) = dlsym(handle, "spd_wchar");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_sound_icon
- *(void **) (&spd_sound_icon_dylibloader_wrapper_speechd) = dlsym(handle, "spd_sound_icon");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_type
- *(void **) (&spd_set_voice_type_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_type_all
- *(void **) (&spd_set_voice_type_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_type_uid
- *(void **) (&spd_set_voice_type_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_type_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_voice_type
- *(void **) (&spd_get_voice_type_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_type");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_synthesis_voice
- *(void **) (&spd_set_synthesis_voice_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_synthesis_voice_all
- *(void **) (&spd_set_synthesis_voice_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_synthesis_voice_uid
- *(void **) (&spd_set_synthesis_voice_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_synthesis_voice_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_data_mode
- *(void **) (&spd_set_data_mode_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_data_mode");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_notification_on
- *(void **) (&spd_set_notification_on_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification_on");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_notification_off
- *(void **) (&spd_set_notification_off_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification_off");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_notification
- *(void **) (&spd_set_notification_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_notification");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_rate
- *(void **) (&spd_set_voice_rate_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_rate_all
- *(void **) (&spd_set_voice_rate_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_rate_uid
- *(void **) (&spd_set_voice_rate_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_rate_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_voice_rate
- *(void **) (&spd_get_voice_rate_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_rate");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_pitch
- *(void **) (&spd_set_voice_pitch_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_pitch_all
- *(void **) (&spd_set_voice_pitch_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_voice_pitch_uid
- *(void **) (&spd_set_voice_pitch_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_voice_pitch_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_voice_pitch
- *(void **) (&spd_get_voice_pitch_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_voice_pitch");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_volume
- *(void **) (&spd_set_volume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_volume_all
- *(void **) (&spd_set_volume_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_volume_uid
- *(void **) (&spd_set_volume_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_volume_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_volume
- *(void **) (&spd_get_volume_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_volume");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_punctuation
- *(void **) (&spd_set_punctuation_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_punctuation_all
- *(void **) (&spd_set_punctuation_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_punctuation_uid
- *(void **) (&spd_set_punctuation_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_punctuation_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_capital_letters
- *(void **) (&spd_set_capital_letters_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_capital_letters_all
- *(void **) (&spd_set_capital_letters_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_capital_letters_uid
- *(void **) (&spd_set_capital_letters_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_capital_letters_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_spelling
- *(void **) (&spd_set_spelling_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_spelling_all
- *(void **) (&spd_set_spelling_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_spelling_uid
- *(void **) (&spd_set_spelling_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_spelling_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_language
- *(void **) (&spd_set_language_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_language_all
- *(void **) (&spd_set_language_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_language_uid
- *(void **) (&spd_set_language_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_language_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_language
- *(void **) (&spd_get_language_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_language");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_output_module
- *(void **) (&spd_set_output_module_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_output_module_all
- *(void **) (&spd_set_output_module_all_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module_all");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_set_output_module_uid
- *(void **) (&spd_set_output_module_uid_dylibloader_wrapper_speechd) = dlsym(handle, "spd_set_output_module_uid");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_message_list_fd
- *(void **) (&spd_get_message_list_fd_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_message_list_fd");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_list_modules
- *(void **) (&spd_list_modules_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_modules");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // free_spd_modules
- *(void **) (&free_spd_modules_dylibloader_wrapper_speechd) = dlsym(handle, "free_spd_modules");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_get_output_module
- *(void **) (&spd_get_output_module_dylibloader_wrapper_speechd) = dlsym(handle, "spd_get_output_module");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_list_voices
- *(void **) (&spd_list_voices_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_voices");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_list_synthesis_voices
- *(void **) (&spd_list_synthesis_voices_dylibloader_wrapper_speechd) = dlsym(handle, "spd_list_synthesis_voices");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // free_spd_voices
- *(void **) (&free_spd_voices_dylibloader_wrapper_speechd) = dlsym(handle, "free_spd_voices");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_execute_command_with_list_reply
- *(void **) (&spd_execute_command_with_list_reply_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_with_list_reply");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_execute_command
- *(void **) (&spd_execute_command_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_execute_command_with_reply
- *(void **) (&spd_execute_command_with_reply_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_with_reply");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_execute_command_wo_mutex
- *(void **) (&spd_execute_command_wo_mutex_dylibloader_wrapper_speechd) = dlsym(handle, "spd_execute_command_wo_mutex");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_send_data
- *(void **) (&spd_send_data_dylibloader_wrapper_speechd) = dlsym(handle, "spd_send_data");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- // spd_send_data_wo_mutex
- *(void **) (&spd_send_data_wo_mutex_dylibloader_wrapper_speechd) = dlsym(handle, "spd_send_data_wo_mutex");
- if (verbose) {
- error = dlerror();
- if (error != NULL) {
- fprintf(stderr, "%s\n", error);
- }
- }
- return 0;
- }
|