Skip to content

Commit c410e11

Browse files
committed
Add t30_set_retransmit_capable API function to allow access to retransmit_capable.
1 parent 056a9e6 commit c410e11

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/spandsp/t30_api.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,12 @@ SPAN_DECLARE(void) t30_set_iaf_mode(t30_state_t *s, int iaf);
464464
\return 0 if OK, else -1. */
465465
SPAN_DECLARE(int) t30_set_ecm_capability(t30_state_t *s, bool enabled);
466466

467+
/*! Specify if page retransmission is allowed by a T.30 context.
468+
\brief Select page regtransmission capable.
469+
\param s The T.30 context.
470+
\param enabled True for retransmit capable, or false for not retransmit capable. */
471+
SPAN_DECLARE(void) t30_set_retransmit_capable(t30_state_t *s, bool enabled);
472+
467473
/*! Specify the output encoding for TIFF files created during FAX reception.
468474
\brief Specify the output encoding for TIFF files created during FAX reception.
469475
\param s The T.30 context.

src/t30_api.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,12 @@ SPAN_DECLARE(int) t30_set_ecm_capability(t30_state_t *s, bool enabled)
789789
}
790790
/*- End of function --------------------------------------------------------*/
791791

792+
SPAN_DECLARE(void) t30_set_retransmit_capable(t30_state_t *s, bool enabled)
793+
{
794+
s->retransmit_capable = enabled;
795+
}
796+
/*- End of function --------------------------------------------------------*/
797+
792798
SPAN_DECLARE(void) t30_set_keep_bad_quality_pages(t30_state_t *s, bool keep_bad_pages)
793799
{
794800
s->keep_bad_pages = keep_bad_pages;

0 commit comments

Comments
 (0)