34 #if !defined(_SPANDSP_V42BIS_H_)
35 #define _SPANDSP_V42BIS_H_
37 #define V42BIS_MIN_STRING_SIZE 6
38 #define V42BIS_MAX_STRING_SIZE 250
39 #define V42BIS_MIN_DICTIONARY_SIZE 512
40 #define V42BIS_MAX_BITS 12
41 #define V42BIS_MAX_CODEWORDS 4096
42 #define V42BIS_TABLE_SIZE 5021
46 V42BIS_P0_NEITHER_DIRECTION = 0,
47 V42BIS_P0_INITIATOR_RESPONDER,
48 V42BIS_P0_RESPONDER_INITIATOR,
49 V42BIS_P0_BOTH_DIRECTIONS
54 V42BIS_COMPRESSION_MODE_DYNAMIC = 0,
55 V42BIS_COMPRESSION_MODE_ALWAYS,
56 V42BIS_COMPRESSION_MODE_NEVER
59 typedef void (*v42bis_frame_handler_t)(
void *user_data,
const uint8_t *pkt,
int len);
60 typedef void (*v42bis_data_handler_t)(
void *user_data,
const uint8_t *buf,
int len);
68 #if defined(__cplusplus)
121 v42bis_frame_handler_t frame_handler,
122 void *frame_user_data,
124 v42bis_data_handler_t data_handler,
125 void *data_user_data,
138 #if defined(__cplusplus)