capi.c File Reference

gitk renderer capi functions More...

#include "gitkrincludes.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>

Include dependency graph for capi.c:

Include dependency graph

Go to the source code of this file.

Functions

void capi_done (CAPI_Info *info)
 free capi20.

gint capi_dtmf_input_arrow (CAPI_Info *info, unsigned char *ucbuf)
 handle received dtmf tones in a arrow model

gint capi_dtmf_input_text (CAPI_Info *info, unsigned char *ucbuf)
 handle received dtmf in a textinput model

void capi_exception (CAPI_Info *info, gint status)
 handle exceptions

void capi_sound_beep (CAPI_Info *info, FT_Info *ftinfo)
 output a beep signal

void capi_sound_critical (CAPI_Info *info, FT_Info *ftinfo)
 output a critical signal

void capi_sound_ding (CAPI_Info *info, FT_Info *ftinfo)
 output a ding signal

void capi_sound_dong (CAPI_Info *info, FT_Info *ftinfo)
 output a dong signal

void capi_sound_error (CAPI_Info *info, FT_Info *ftinfo)
 output an error signal

void capi_sound_indication (CAPI_Info *info, FT_Info *ftinfo)
 output a indication signal

void capi_sound_notify (CAPI_Info *info, FT_Info *ftinfo)
 output a notify signal

gboolean capi_sound_output (CAPI_Info *info, gchar *filename, FT_Info *ftinfo)
 handle the transformation and the output of sound over the phone

void capi_sound_question (CAPI_Info *info, FT_Info *ftinfo)
 output a question signal

void capi_sound_standard (CAPI_Info *info, FT_Info *ftinfo)
 output a standard signal

gint capi_text_output (CAPI_Info *info, unsigned char *ucbuf, FT_Info *ftinfo)
 handle the transformation and the output of text over the phone


Detailed Description

gitk renderer capi functions

Id
capi.c,v 1.6 2004/06/08 10:30:50 sast Exp

Author:
Steffen Ast <sast@users.sf.net>
Date:
Sat Feb 14 01:20:26 2004

Definition in file capi.c.


Function Documentation

void capi_done CAPI_Info info  ) 
 

free capi20.

Parameters:
info handle previously returned by capi_initialize() or NULL

Definition at line 647 of file capi.c.

References CAPI_Info::capi_appid, and capi_incoming_connected.

Referenced by capi_exception(), gitkr_done(), and gitkr_init().

gint capi_dtmf_input_arrow CAPI_Info info,
unsigned char *  ucbuf
 

handle received dtmf tones in a arrow model

Parameters:
info handle previously returned by capi_initialize() or NULL
ucbuf a pointer to an unsigned char buffer to hold the received dtmf

Definition at line 730 of file capi.c.

References CAPI_Info::capi_appid, gitk_log1, key_of_char(), and navigation().

Referenced by gitkr_widget_optionchoice_handle(), and handle_dialog_main_widgets().

Here is the call graph for this function:

gint capi_dtmf_input_text CAPI_Info info,
unsigned char *  ucbuf
 

handle received dtmf in a textinput model

Parameters:
info handle previously returned by capi_initialize() or NULL
ucbuf a pointer to an unsigned char buffer to hold the received dtmf

Definition at line 665 of file capi.c.

References CAPI_Info::capi_appid, get_ascii_of_key(), gitkr_event_loop_getkey(), key_of_char(), and CAPI_Dtmf::member.

Referenced by gitkr_widget_characterinput_handle().

Here is the call graph for this function:

void capi_exception CAPI_Info info,
gint  status
 

handle exceptions

Parameters:
info handle previously returned by capi_initialize() or NULL
status the exceptionname to print it into the logfile

Definition at line 829 of file capi.c.

References capi_done(), and gitk_log1.

Here is the call graph for this function:

void capi_sound_beep CAPI_Info info,
FT_Info ftinfo
 

output a beep signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 898 of file capi.c.

References capi_sound_output(), and ftinfo.

Referenced by gitkr_widget_optionchoice_handle(), next_page(), and prev_page().

Here is the call graph for this function:

void capi_sound_critical CAPI_Info info,
FT_Info ftinfo
 

output a critical signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 978 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

void capi_sound_ding CAPI_Info info,
FT_Info ftinfo
 

output a ding signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 918 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

void capi_sound_dong CAPI_Info info,
FT_Info ftinfo
 

output a dong signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 968 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

void capi_sound_error CAPI_Info info,
FT_Info ftinfo
 

output an error signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 928 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

void capi_sound_indication CAPI_Info info,
FT_Info ftinfo
 

output a indication signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 958 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

void capi_sound_notify CAPI_Info info,
FT_Info ftinfo
 

output a notify signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 948 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

gboolean capi_sound_output CAPI_Info info,
gchar *  filename,
FT_Info ftinfo
 

handle the transformation and the output of sound over the phone

Parameters:
info handle previously returned by capi_initialize() or NULL
filename name of the wav file
info handle previously returned by festival_initialize() or NULL

Definition at line 839 of file capi.c.

References ftinfo, gitk_log, gitk_log2, FT_Wave::num_samples, FT_Wave::sample_rate, FT_Wave::samples, and FT_Alaw::samples.

Referenced by capi_sound_beep(), capi_sound_critical(), capi_sound_ding(), capi_sound_dong(), capi_sound_error(), capi_sound_indication(), capi_sound_notify(), capi_sound_question(), and capi_sound_standard().

void capi_sound_question CAPI_Info info,
FT_Info ftinfo
 

output a question signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 938 of file capi.c.

References capi_sound_output(), and ftinfo.

Referenced by gitkr_widget_characterinput_handle().

Here is the call graph for this function:

void capi_sound_standard CAPI_Info info,
FT_Info ftinfo
 

output a standard signal

Parameters:
info handle previously returned by capi_initialize() or NULL
info handle previously returned by festival_initialize() or NULL

Definition at line 908 of file capi.c.

References capi_sound_output(), and ftinfo.

Here is the call graph for this function:

gint capi_text_output CAPI_Info info,
unsigned char *  ucbuf,
FT_Info ftinfo
 

handle the transformation and the output of text over the phone

Parameters:
info handle previously returned by capi_initialize() or NULL
ucbuf a pointer to an unsigned char buffer that hold the textdata
info handle previously returned by festival_initialize() or NULL

Definition at line 776 of file capi.c.

References ftinfo, gitk_log, FT_Wave::samples, and FT_Alaw::samples.

Referenced by gitkr_dialog_output_layout(), gitkr_event_loop_start(), gitkr_render(), gitkr_widget_action_handle(), gitkr_widget_action_output(), gitkr_widget_characterinput_alphabetic_handle(), gitkr_widget_characterinput_handle(), gitkr_widget_characterinput_output(), gitkr_widget_characterinput_value_output(), gitkr_widget_label_handle(), gitkr_widget_label_output(), gitkr_widget_optionchoice_boolean_handle(), gitkr_widget_optionchoice_boolean_output(), gitkr_widget_optionchoice_handle(), gitkr_widget_optionchoice_output(), gitkr_widget_optionchoice_value_output(), handle_dialog_ctrl_widgets(), and handle_dialog_main_widgets().


Generated on Thu Oct 28 10:59:17 2004 for gitk by doxygen 1.3.6