/*
* options.h - Defines possible command line options
*
* Copyright (C) 2003 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 program. If not, see .
*
* $Id: options.h,v 1.10 2006-07-11 16:12:27 hanke Exp $
*/
#include
#include "speechd_types.h"
extern signed int rate;
extern signed int pitch;
extern signed int pitch_range;
extern signed int volume;
extern int list_output_modules;
extern char *output_module;
extern char *sound_icon;
extern char *language;
extern char *voice_type;
extern char *punctuation_mode;
extern char *priority;
extern int pipe_mode;
extern int character;
extern int key;
extern SPDDataMode ssml_mode;
extern int spelling;
extern int wait_till_end;
extern int stop_previous;
extern int cancel_previous;
extern int list_synthesis_voices;
extern char *synthesis_voice;
extern char *application_name;
extern char *connection_name;
static struct option long_options[] = {
{"rate", 1, 0, 'r'},
{"pitch", 1, 0, 'p'},
{"pitch-range", 1, 0, 'R'},
{"volume", 1, 0, 'i'},
{"output-module", 1, 0, 'o'},
{"list-output-modules", no_argument, 0, 'O'},
{"sound-icon", required_argument, 0, 'I'},
{"language", 1, 0, 'l'},
{"voice-type", 1, 0, 't'},
{"list-synthesis-voices", no_argument, 0, 'L'},
{"synthesis-voice", required_argument, 0, 'y'},
{"character", 0, 0, 'c'},
{"key", 0, 0, 'k'},
{"punctuation-mode", 1, 0, 'm'},
{"spelling", 0, 0, 's'},
{"ssml", 0, 0, 'x'},
{"pipe-mode", 0, 0, 'e'},
{"priority", 1, 0, 'P'},
{"application-name", 1, 0, 'N'},
{"connection-name", 1, 0, 'n'},
{"wait", 0, 0, 'w'},
{"stop", 1, 0, 'S'},
{"cancel", no_argument, 0, 'C'},
{"version", 0, 0, 'v'},
{"help", 0, 0, 'h'},
{0, 0, 0, 0}
};
static char *short_options = "r:p:R:i:l:o:OI:t:Ly:ckm:sxeP:N:n:wSCvh";
int options_parse(int argc, char *argv[]);
void options_print_version(void);
void options_print_help(char *argv[]);