File: options.h

package info (click to toggle)
speechd-up 0.5~20110719-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 316 kB
  • ctags: 115
  • sloc: ansic: 1,592; sh: 165; makefile: 25
file content (57 lines) | stat: -rw-r--r-- 1,516 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * options.h - Defines possible command line options
 *
 * Copyright (C) 2003, 2006 Brailcom, o.p.s.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this package; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef OPTIONS_H
#define OPTIONS_H

#define MODE_DAEMON 1
#define MODE_SINGLE 0

#define DEFAULT 0
#define COMMAND_LINE 1
#define CONFIG_FILE 2

struct spd_options {
	int log_level;
	int log_level_set;
	char *log_file_name;
	int log_file_name_set;
	int spd_spk_mode;
	char *config_file_name;
	char *speakup_device;
	int speakup_device_set;
	char *speakup_chartab;
	int speakup_chartab_set;
	char *speakup_characters;
	int speakup_characters_set;
	char *speakup_coding;
	int speakup_coding_set;
	char *language;
	int language_set;
	int probe_mode;
	int dont_init_tables;
	int dont_init_tables_set;
};

void options_set_default(void);
void options_parse(int argc, char *argv[]);

#endif