Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
speakup.h File Reference
#include "spk_types.h"
#include "i18n.h"

Go to the source code of this file.

Macros

#define SPEAKUP_VERSION   "3.1.6"
 
#define KEY_MAP_VER   119
 
#define SHIFT_TBL_SIZE   64
 
#define MAX_DESC_LEN   72
 
#define USER_R   (S_IFREG|S_IRUGO)
 
#define USER_W   (S_IFREG|S_IWUGO)
 
#define USER_RW   (S_IFREG|S_IRUGO|S_IWUGO)
 
#define ROOT_W   (S_IFREG|S_IRUGO|S_IWUSR)
 
#define TOGGLE_0   .u.n = {NULL, 0, 0, 1, 0, 0, NULL }
 
#define TOGGLE_1   .u.n = {NULL, 1, 0, 1, 0, 0, NULL }
 
#define MAXVARLEN   15
 
#define SYNTH_OK   0x0001
 
#define B_ALPHA   0x0002
 
#define ALPHA   0x0003
 
#define B_CAP   0x0004
 
#define A_CAP   0x0007
 
#define B_NUM   0x0008
 
#define NUM   0x0009
 
#define ALPHANUM   (B_ALPHA|B_NUM)
 
#define SOME   0x0010
 
#define MOST   0x0020
 
#define PUNC   0x0040
 
#define A_PUNC   0x0041
 
#define B_WDLM   0x0080
 
#define WDLM   0x0081
 
#define B_EXNUM   0x0100
 
#define CH_RPT   0x0200
 
#define B_CTL   0x0400
 
#define A_CTL   (B_CTL+SYNTH_OK)
 
#define B_SYM   0x0800
 
#define B_CAPSYM   (B_CAP|B_SYM)
 
#define IS_WDLM(x)   (spk_chartab[((u_char)x)]&B_WDLM)
 
#define IS_CHAR(x, type)   (spk_chartab[((u_char)x)]&type)
 
#define IS_TYPE(x, type)   ((spk_chartab[((u_char)x)]&type) == type)
 
#define SET_DEFAULT   -4
 
#define E_RANGE   -3
 
#define E_TOOLONG   -2
 
#define E_UNDEF   -1
 

Functions

int speakup_thread (void *data)
 
void reset_default_chars (void)
 
void reset_default_chartab (void)
 
void synth_start (void)
 
void synth_insert_next_index (int sent_num)
 
void reset_index_count (int sc)
 
void get_index_count (int *linecount, int *sentcount)
 
int set_key_info (const u_char *key_info, u_char *k_buffer)
 
charstrlwr (char *s)
 
charspeakup_s2i (char *start, int *dest)
 
chars2uchar (char *start, char *dest)
 
charxlate (char *s)
 
int speakup_kobj_init (void)
 
void speakup_kobj_exit (void)
 
int chartab_get_value (char *keyword)
 
void speakup_register_var (struct var_t *var)
 
void speakup_unregister_var (enum var_id_t var_id)
 
struct st_var_headerget_var_header (enum var_id_t var_id)
 
struct st_var_headervar_header_by_name (const char *name)
 
struct punc_var_tget_punc_var (enum var_id_t var_id)
 
int set_num_var (int val, struct st_var_header *var, int how)
 
int set_string_var (const char *page, struct st_var_header *var, int len)
 
int set_mask_bits (const char *input, const int which, const int how)
 
int handle_help (struct vc_data *vc, u_char type, u_char ch, u_short key)
 
int synth_init (char *name)
 
void synth_release (void)
 
void do_flush (void)
 
void speakup_start_ttys (void)
 
void synth_buffer_add (char ch)
 
void synth_buffer_clear (void)
 
void speakup_clear_selection (void)
 
int speakup_set_selection (struct tty_struct *tty)
 
int speakup_paste_selection (struct tty_struct *tty)
 
void speakup_register_devsynth (void)
 
void speakup_unregister_devsynth (void)
 
void synth_write (const char *buf, size_t count)
 
int synth_supports_indexing (void)
 
int speakup_add_virtual_keyboard (void)
 
void speakup_remove_virtual_keyboard (void)
 
void speakup_fake_down_arrow (void)
 
bool speakup_fake_key_pressed (void)
 

Variables

special_func special_handler
 
struct vc_dataspk_sel_cons
 
unsigned short xs
 
unsigned short ys
 
unsigned short xe
 
unsigned short ye
 
wait_queue_head_t speakup_event
 
struct kobjectspeakup_kobj
 
struct task_structspeakup_task
 
const u_char key_defaults []
 
struct mutex spk_mutex
 
struct st_spk_tspeakup_console []
 
struct spk_synthsynth
 
char pitch_buff []
 
u_charour_keys []
 
short punc_masks []
 
char str_caps_start []
 
char str_caps_stop []
 
struct st_bits_data punc_info []
 
u_char key_buf [600]
 
charcharacters []
 
chardefault_chars []
 
u_short spk_chartab []
 
int no_intr
 
int say_ctrl
 
int say_word_ctl
 
int punc_level
 
int reading_punc
 
int attrib_bleep
 
int bleeps
 
int bleep_time
 
int bell_pos
 
int spell_delay
 
int key_echo
 
short punc_mask
 
short pitch_shift
 
short synth_flags
 
bool quiet_boot
 
charsynth_name
 
struct bleep unprocessed_sound
 

Macro Definition Documentation

#define A_CAP   0x0007

Definition at line 26 of file speakup.h.

#define A_CTL   (B_CTL+SYNTH_OK)

Definition at line 39 of file speakup.h.

#define A_PUNC   0x0041

Definition at line 33 of file speakup.h.

#define ALPHA   0x0003

Definition at line 24 of file speakup.h.

#define ALPHANUM   (B_ALPHA|B_NUM)

Definition at line 29 of file speakup.h.

#define B_ALPHA   0x0002

Definition at line 23 of file speakup.h.

#define B_CAP   0x0004

Definition at line 25 of file speakup.h.

#define B_CAPSYM   (B_CAP|B_SYM)

Definition at line 41 of file speakup.h.

#define B_CTL   0x0400

Definition at line 38 of file speakup.h.

#define B_EXNUM   0x0100

Definition at line 36 of file speakup.h.

#define B_NUM   0x0008

Definition at line 27 of file speakup.h.

#define B_SYM   0x0800

Definition at line 40 of file speakup.h.

#define B_WDLM   0x0080

Definition at line 34 of file speakup.h.

#define CH_RPT   0x0200

Definition at line 37 of file speakup.h.

#define E_RANGE   -3

Definition at line 48 of file speakup.h.

#define E_TOOLONG   -2

Definition at line 49 of file speakup.h.

#define E_UNDEF   -1

Definition at line 50 of file speakup.h.

#define IS_CHAR (   x,
  type 
)    (spk_chartab[((u_char)x)]&type)

Definition at line 44 of file speakup.h.

#define IS_TYPE (   x,
  type 
)    ((spk_chartab[((u_char)x)]&type) == type)

Definition at line 45 of file speakup.h.

#define IS_WDLM (   x)    (spk_chartab[((u_char)x)]&B_WDLM)

Definition at line 43 of file speakup.h.

#define KEY_MAP_VER   119

Definition at line 8 of file speakup.h.

#define MAX_DESC_LEN   72

Definition at line 10 of file speakup.h.

#define MAXVARLEN   15

Definition at line 20 of file speakup.h.

#define MOST   0x0020

Definition at line 31 of file speakup.h.

#define NUM   0x0009

Definition at line 28 of file speakup.h.

#define PUNC   0x0040

Definition at line 32 of file speakup.h.

#define ROOT_W   (S_IFREG|S_IRUGO|S_IWUSR)

Definition at line 16 of file speakup.h.

#define SET_DEFAULT   -4

Definition at line 47 of file speakup.h.

#define SHIFT_TBL_SIZE   64

Definition at line 9 of file speakup.h.

#define SOME   0x0010

Definition at line 30 of file speakup.h.

#define SPEAKUP_VERSION   "3.1.6"

Definition at line 7 of file speakup.h.

#define SYNTH_OK   0x0001

Definition at line 22 of file speakup.h.

#define TOGGLE_0   .u.n = {NULL, 0, 0, 1, 0, 0, NULL }

Definition at line 18 of file speakup.h.

#define TOGGLE_1   .u.n = {NULL, 1, 0, 1, 0, 0, NULL }

Definition at line 19 of file speakup.h.

#define USER_R   (S_IFREG|S_IRUGO)

Definition at line 13 of file speakup.h.

#define USER_RW   (S_IFREG|S_IRUGO|S_IWUGO)

Definition at line 15 of file speakup.h.

#define USER_W   (S_IFREG|S_IWUGO)

Definition at line 14 of file speakup.h.

#define WDLM   0x0081

Definition at line 35 of file speakup.h.

Function Documentation

int chartab_get_value ( char keyword)

Definition at line 61 of file varhandlers.c.

void do_flush ( void  )

Definition at line 201 of file synth.c.

void get_index_count ( int linecount,
int sentcount 
)

Definition at line 280 of file synth.c.

struct punc_var_t* get_punc_var ( enum var_id_t  var_id)
read

Definition at line 162 of file varhandlers.c.

struct st_var_header* get_var_header ( enum var_id_t  var_id)
read

Definition at line 126 of file varhandlers.c.

int handle_help ( struct vc_data vc,
u_char  type,
u_char  ch,
u_short  key 
)

Definition at line 140 of file keyhelp.c.

void reset_default_chars ( void  )

Definition at line 1243 of file main.c.

void reset_default_chartab ( void  )

Definition at line 1257 of file main.c.

void reset_index_count ( int  sc)

Definition at line 244 of file synth.c.

char* s2uchar ( char start,
char dest 
)

Definition at line 344 of file varhandlers.c.

int set_key_info ( const u_char key_info,
u_char k_buffer 
)

Definition at line 1179 of file main.c.

int set_mask_bits ( const char input,
const int  which,
const int  how 
)

Definition at line 274 of file varhandlers.c.

int set_num_var ( int  val,
struct st_var_header var,
int  how 
)

Definition at line 178 of file varhandlers.c.

int set_string_var ( const char page,
struct st_var_header var,
int  len 
)

Definition at line 247 of file varhandlers.c.

int speakup_add_virtual_keyboard ( void  )

Definition at line 35 of file fakekey.c.

void speakup_clear_selection ( void  )

Definition at line 30 of file selection.c.

void speakup_fake_down_arrow ( void  )

Definition at line 72 of file fakekey.c.

bool speakup_fake_key_pressed ( void  )

Definition at line 96 of file fakekey.c.

void speakup_kobj_exit ( void  )

Definition at line 1018 of file kobjects.c.

int speakup_kobj_init ( void  )

Definition at line 972 of file kobjects.c.

int speakup_paste_selection ( struct tty_struct tty)

Definition at line 126 of file selection.c.

void speakup_register_devsynth ( void  )

Definition at line 74 of file devsynth.c.

void speakup_register_var ( struct var_t var)

Definition at line 86 of file varhandlers.c.

void speakup_remove_virtual_keyboard ( void  )

Definition at line 61 of file fakekey.c.

char* speakup_s2i ( char start,
int dest 
)

Definition at line 322 of file varhandlers.c.

int speakup_set_selection ( struct tty_struct tty)

Definition at line 47 of file selection.c.

void speakup_start_ttys ( void  )

Definition at line 23 of file buffers.c.

int speakup_thread ( void data)

Definition at line 11 of file thread.c.

void speakup_unregister_devsynth ( void  )

Definition at line 88 of file devsynth.c.

void speakup_unregister_var ( enum var_id_t  var_id)

Definition at line 118 of file varhandlers.c.

char* strlwr ( char s)

Definition at line 311 of file varhandlers.c.

void synth_buffer_add ( char  ch)

Definition at line 62 of file buffers.c.

void synth_buffer_clear ( void  )

Definition at line 101 of file buffers.c.

int synth_init ( char name)

Definition at line 327 of file synth.c.

void synth_insert_next_index ( int  sent_num)

Definition at line 262 of file synth.c.

void synth_release ( void  )

Definition at line 399 of file synth.c.

void synth_start ( void  )

Definition at line 187 of file synth.c.

int synth_supports_indexing ( void  )

Definition at line 255 of file synth.c.

void synth_write ( const char buf,
size_t  count 
)

Definition at line 215 of file synth.c.

struct st_var_header* var_header_by_name ( const char name)
read

Definition at line 137 of file varhandlers.c.

char* xlate ( char s)

Definition at line 360 of file varhandlers.c.

Variable Documentation

int attrib_bleep

Definition at line 77 of file main.c.

int bell_pos

Definition at line 80 of file main.c.

int bleep_time

Definition at line 77 of file main.c.

int bleeps

Definition at line 77 of file main.c.

char* characters[]

Definition at line 132 of file main.c.

char* default_chars[]

Definition at line 134 of file main.c.

u_char key_buf[600]

Definition at line 99 of file main.c.

const u_char key_defaults[]

Definition at line 100 of file main.c.

int key_echo

Definition at line 79 of file main.c.

int no_intr

Definition at line 78 of file main.c.

u_char* our_keys[]

Definition at line 98 of file main.c.

char pitch_buff[]

Definition at line 23 of file synth.c.

short pitch_shift

Definition at line 75 of file main.c.

struct st_bits_data punc_info[]

Definition at line 84 of file main.c.

int punc_level

Definition at line 82 of file main.c.

short punc_mask

Definition at line 81 of file main.c.

short punc_masks[]

Definition at line 463 of file synth.c.

bool quiet_boot

Definition at line 25 of file synth.c.

int reading_punc

Definition at line 82 of file main.c.

int say_ctrl

Definition at line 80 of file main.c.

int say_word_ctl

Definition at line 79 of file main.c.

struct st_spk_t* speakup_console[]

Definition at line 247 of file main.c.

wait_queue_head_t speakup_event
struct kobject* speakup_kobj

Definition at line 970 of file kobjects.c.

struct task_struct* speakup_task

Definition at line 240 of file main.c.

special_func special_handler

Definition at line 73 of file main.c.

int spell_delay

Definition at line 78 of file main.c.

u_short spk_chartab[]

Definition at line 198 of file main.c.

struct mutex spk_mutex
struct vc_data* spk_sel_cons

Definition at line 17 of file selection.c.

char str_caps_start[]

Definition at line 83 of file main.c.

char str_caps_stop[]

Definition at line 83 of file main.c.

struct spk_synth* synth

Definition at line 22 of file synth.c.

short synth_flags

Definition at line 75 of file main.c.

char* synth_name

Definition at line 66 of file main.c.

struct bleep unprocessed_sound

Definition at line 241 of file main.c.

unsigned short xe

Definition at line 13 of file selection.c.

unsigned short xs

Definition at line 13 of file selection.c.

unsigned short ye

Definition at line 13 of file selection.c.

unsigned short ys

Definition at line 13 of file selection.c.