capi.h File Reference

gitk renderer capi20 functions More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  CAPI_Data
 capi-data of capi service More...

struct  CAPI_Dtmf
 dtmf-data of capi service More...

struct  CAPI_Info
 info-data of capi service More...


Defines

#define CAPI_DEFAULT_CIPMASK   0x1FFF03FF
 CIPmask1 of capi service.

#define CAPI_DEFAULT_CIPMASK2   0x00000000
 CIPmask1 of capi service.

#define CAPI_DEFAULT_CONTROLLER   0x00000001
 the choosen controller of capi service

#define CAPI_DEFAULT_INFOMASK   0x00000144
 infomask of capi service

#define CAPI_DEFAULT_LOGICAL_CONNECTIONS   30
 number of logical connections of capi service

#define CAPI_DEFAULT_MAX_B_DATA_BLOCKS   8
 max B-channel blocks of capi service

#define CAPI_DEFAULT_MAX_B_DATA_SIZE   2048
 max B-channel data size of capi service

#define CAPI_NO_FACILITY   0x0002
 error no facility of capi service

#define CAPI_NO_MEMORY   0x0001
 error no memory of capi service


Typedefs

typedef CAPI_Data CAPI_Data
 capi-data of capi service

typedef CAPI_Dtmf CAPI_Dtmf
 dtmf-data of capi service

typedef CAPI_Info CAPI_Info
 info-data of capi service


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

CAPI_Infocapi_initialize (int max_logical_conn, int max_Bdata_blocks, int max_Bdata_length)
gint capi_listen (CAPI_Info *info, unsigned long controller, unsigned long infomask, unsigned long cipmask, unsigned long cipmask2)
gint capi_send_message (CAPI_Info *info, FT_Alaw *alaw, int breakable)
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

gboolean capi_wait_for_incoming_calls (CAPI_Info *info)

Variables

gboolean capi_incoming_connected
 indicates a running incomming connection of capi service


Detailed Description

gitk renderer capi20 functions

Id
capi.h,v 1.4 2004/06/08 10:30:50 sast Exp

Author:
Steffen Ast <ast@users.sf.net>
Date:
Sat Feb 14 00:52:01 2004

Definition in file capi.h.


Define Documentation

#define CAPI_DEFAULT_CIPMASK   0x1FFF03FF
 

CIPmask1 of capi service.

Definition at line 27 of file capi.h.

Referenced by gitkr_init().

#define CAPI_DEFAULT_CIPMASK2   0x00000000
 

CIPmask1 of capi service.

Definition at line 29 of file capi.h.

Referenced by gitkr_init().

#define CAPI_DEFAULT_CONTROLLER   0x00000001
 

the choosen controller of capi service

Definition at line 23 of file capi.h.

Referenced by gitkr_init().

#define CAPI_DEFAULT_INFOMASK   0x00000144
 

infomask of capi service

Definition at line 25 of file capi.h.

Referenced by gitkr_init().

#define CAPI_DEFAULT_LOGICAL_CONNECTIONS   30
 

number of logical connections of capi service

Definition at line 21 of file capi.h.

#define CAPI_DEFAULT_MAX_B_DATA_BLOCKS   8
 

max B-channel blocks of capi service

Definition at line 19 of file capi.h.

#define CAPI_DEFAULT_MAX_B_DATA_SIZE   2048
 

max B-channel data size of capi service

Definition at line 17 of file capi.h.

#define CAPI_NO_FACILITY   0x0002
 

error no facility of capi service

Definition at line 34 of file capi.h.

#define CAPI_NO_MEMORY   0x0001
 

error no memory of capi service

Definition at line 32 of file capi.h.


Typedef Documentation

typedef struct CAPI_Data CAPI_Data
 

capi-data of capi service

typedef struct CAPI_Dtmf CAPI_Dtmf
 

dtmf-data of capi service

typedef struct CAPI_Info CAPI_Info
 

info-data of capi service


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_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_Alaw::samples, and FT_Wave::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_Alaw::samples, and FT_Wave::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().


Variable Documentation

gboolean capi_incoming_connected
 

indicates a running incomming connection of capi service

Definition at line 37 of file capi.h.

Referenced by capi_done(), gitkr_done(), gitkr_event_loop_start(), and gitkr_render().


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