40 #if !defined(_SPANDSP_HDLC_H_)
41 #define _SPANDSP_HDLC_H_
46 #define HDLC_MAXFRAME_LEN 400
48 typedef void (*hdlc_frame_handler_t)(
void *user_data,
const uint8_t *pkt,
int len,
int ok);
49 typedef void (*hdlc_underflow_handler_t)(
void *user_data);
79 #if defined(__cplusplus)
97 int report_bad_frames,
98 int framing_ok_threshold,
99 hdlc_frame_handler_t handler,
183 hdlc_underflow_handler_t handler,
245 #if defined(__cplusplus)