Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

v8.h File Reference

Go to the source code of this file.

Classes

struct  v8_result_s

Typedefs

typedef v8_result_s v8_result_t
typedef void( v8_result_handler_t )(void *user_data, v8_result_t *result)
typedef v8_state_s v8_state_t

Enumerations

enum  v8_call_function_e {
  V8_CALL_TBS = 0, V8_CALL_H324, V8_CALL_V18, V8_CALL_T101,
  V8_CALL_T30_TX, V8_CALL_T30_RX, V8_CALL_V_SERIES, V8_CALL_FUNCTION_EXTENSION
}
enum  v8_modulation_e {
  V8_MOD_V17 = (1 << 0), V8_MOD_V21 = (1 << 1), V8_MOD_V22 = (1 << 2), V8_MOD_V23HALF = (1 << 3),
  V8_MOD_V23 = (1 << 4), V8_MOD_V26BIS = (1 << 5), V8_MOD_V26TER = (1 << 6), V8_MOD_V27TER = (1 << 7),
  V8_MOD_V29 = (1 << 8), V8_MOD_V32 = (1 << 9), V8_MOD_V34HALF = (1 << 10), V8_MOD_V34 = (1 << 11),
  V8_MOD_V90 = (1 << 12), V8_MOD_V92 = (1 << 13), V8_MOD_FAILED = (1 << 15)
}
enum  v8_protocol_e { V8_PROTOCOL_NONE = 0, V8_PROTOCOL_LAPM_V42 = 1, V8_PROTOCOL_EXTENSION = 7 }
enum  v8_pstn_access_e { V8_PSTN_ACCESS_CALL_DCE_CELLULAR = 0x20, V8_PSTN_ACCESS_ANSWER_DCE_CELLULAR = 0x40, V8_PSTN_ACCESS_DCE_ON_DIGTIAL = 0x80 }
enum  v8_pcm_modem_availability_e { V8_PSTN_PCM_MODEM_V90_V92_ANALOGUE = 0x20, V8_PSTN_PCM_MODEM_V90_V92_DIGITAL = 0x40, V8_PSTN_PCM_MODEM_V91 = 0x80 }

Functions

 SPAN_DECLARE (v8_state_t *) v8_init(v8_state_t *s
 Initialise a V.8 context.
 SPAN_DECLARE (int) v8_release(v8_state_t *s)
 Release a V.8 context.
 SPAN_DECLARE (logging_state_t *) v8_get_logging_state(v8_state_t *s)
 Get a pointer to the logging context associated with a T.38 context.
 SPAN_DECLARE (void) v8_log_supported_modulations(v8_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (const char *) v8_call_function_to_str(int call_function)
 Get the short text name of an encoding format.

Variables

int caller
int int available_modulations
int int v8_result_handler_t * result_handler
int int v8_result_handler_t
void * 
user_data
int16_t * amp
int16_t int max_len
const int16_t int len
int modulation_schemes


Detailed Description


Function Documentation

SPAN_DECLARE const char *   ) 
 

Get the short text name of an encoding format.

Get the transmitted identifier associated with a T.30 context.

Parameters:
s The T.30 context.
id A pointer to the identifier.
Returns:
0 for OK, else -1.

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Log the list of supported modulations.

Parameters:
s The V.8 context.
modulation_schemes The list of supported modulations.

SPAN_DECLARE logging_state_t  ) 
 

Get a pointer to the logging context associated with a T.38 context.

Get a pointer to the logging context associated with a FAX context.

Parameters:
s The FAX context.
Returns:
A pointer to the logging context, or NULL.

SPAN_DECLARE int32_t   ) 
 

Release a V.8 context.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE v8_state_t *   ) 
 

Initialise a V.8 context.

Initialise a V.8 context.

Parameters:
s The V.8 context.
caller TRUE if caller mode, else answerer mode.
available_modulations A bitwise list of the modulation schemes to be advertised as available here.
result_handler The callback routine used to handle the results of negotiation.
user_data An opaque pointer passed to the result_handler routine.
Returns:
A pointer to the V.8 context, or NULL if there was a problem.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1