1 
2 /*
3  * set.h - Settings related functions for Speech Dispatcher header
4  *
5  * Copyright (C) 2001, 2002, 2003 Brailcom, o.p.s.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  * $Id: set.h,v 1.17 2008-06-27 12:29:02 hanke Exp $
21  */
22 
23 #ifndef SET_H
24 #define SET_H
25 
26 #include "speechd.h"
27 #include "history.h"
28 
29 TFDSetElement *get_client_settings_by_uid(int uid);
30 TFDSetElement *get_client_settings_by_fd(int fd);
31 void remove_client_settings_by_uid(int uid);
32 int get_client_uid_by_fd(int fd);
33 
34 int set_priority_uid(int uid, SPDPriority priority);
35 int set_language_uid(int uid, char *language);
36 int set_rate_uid(int uid, int rate);
37 int set_pitch_uid(int uid, int pitch);
38 int set_pitch_range_uid(int uid, int pitch_range);
39 int set_volume_uid(int uid, int volume);
40 int set_punct_mode_uid(int uid, int punct);
41 int set_cap_let_recog_uid(int uid, int recog);
42 int set_spelling_uid(int uid, SPDSpelling spelling);
43 int set_output_module_self(int uid, char *output_module);
44 int set_voice_uid(int uid, char *voice);
45 int set_synthesis_voice_uid(int uid, char *synthesis_voice);
46 int set_punctuation_mode_uid(int uid, SPDPunctuation punctuation);
47 int set_capital_letter_recognition_uid(int uid, SPDCapitalLetters recogn);
48 int set_output_module_uid(int uid, char *output_module);
49 int set_ssml_mode_uid(int uid, SPDDataMode ssml_mode);
50 int set_symbols_preprocessing_uid(int uid, gboolean symbols_preprocessing);
51 int set_pause_context_uid(int uid, int pause_context);
52 int set_debug_uid(int uid, int debug);
53 int set_debug_destination_uid(int uid, char *debug_destination);
54 
55 int set_priority_self(int fd, SPDPriority priority);
56 int set_language_self(int fd, char *language);
57 int set_rate_self(int fd, int rate);
58 int set_pitch_self(int fd, int pitch);
59 int set_pitch_range_self(int fd, int pitch_range);
60 int set_volume_self(int fd, int volume);
61 int set_punct_mode_self(int fd, int punct);
62 int set_cap_let_recog_self(int fd, int recog);
63 int set_spelling_self(int fd, SPDSpelling spelling);
64 int set_output_module_self(int fd, char *output_module);
65 int set_client_name_self(int fd, char *client_name);
66 int set_voice_self(int fd, char *voice);
67 int set_synthesis_voice_self(int fd, char *synthesis_voice);
68 int set_punctuation_mode_self(int fd, SPDPunctuation punctuation);
69 int set_capital_letter_recognition_self(int fd, SPDCapitalLetters recogn);
70 int set_ssml_mode_self(int fd, SPDDataMode ssml_mode);
71 int set_symbols_preprocessing_self(int fd, gboolean symbols_preprocessing);
72 int set_notification_self(int fd, char *type, int val);
73 int set_pause_context_self(int fd, int pause_context);
74 int set_debug_self(int fd, int debug);
75 int set_debug_destination_self(int fd, char *debug_destination);
76 
77 int set_priority_all(SPDPriority priority);
78 int set_language_all(char *language);
79 int set_rate_all(int rate);
80 int set_pitch_all(int pitch);
81 int set_pitch_range_all(int pitch_range);
82 int set_volume_all(int volume);
83 int set_punct_mode_all(int punct);
84 int set_cap_let_recog_all(int recog);
85 int set_spelling_all(SPDSpelling spelling);
86 int set_output_module_all(char *output_module);
87 int set_voice_all(char *voice);
88 int set_synthesis_voice_all(char *synthesis_voice);
89 int set_punctuation_mode_all(SPDPunctuation punctuation);
90 int set_capital_letter_recognition_all(SPDCapitalLetters recogn);
91 int set_ssml_mode_all(SPDDataMode ssml_mode);
92 int set_symbols_preprocessing_all(gboolean symbols_preprocessing);
93 int set_pause_context_all(int pause_context);
94 int set_debug_all(int debug);
95 int set_debug_destination_all(char *debug_destination);
96 
97 TFDSetElement *default_fd_set(void);
98 
99 char *set_param_str(char *parameter, char *value);
100 
101 void update_cl_settings(gpointer data, gpointer user_data);
102 
103 gint spd_str_compare(gconstpointer a, gconstpointer b);
104 
105 #endif
106