Skip to content

Commit

Permalink
Add t30_set_retransmit_capable API function to allow access to retran…
Browse files Browse the repository at this point in the history
…smit_capable.
  • Loading branch information
redder86 committed Jun 10, 2022
1 parent 056a9e6 commit c410e11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spandsp/t30_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ SPAN_DECLARE(void) t30_set_iaf_mode(t30_state_t *s, int iaf);
\return 0 if OK, else -1. */
SPAN_DECLARE(int) t30_set_ecm_capability(t30_state_t *s, bool enabled);

/*! Specify if page retransmission is allowed by a T.30 context.
\brief Select page regtransmission capable.
\param s The T.30 context.
\param enabled True for retransmit capable, or false for not retransmit capable. */
SPAN_DECLARE(void) t30_set_retransmit_capable(t30_state_t *s, bool enabled);

/*! Specify the output encoding for TIFF files created during FAX reception.
\brief Specify the output encoding for TIFF files created during FAX reception.
\param s The T.30 context.
Expand Down
6 changes: 6 additions & 0 deletions src/t30_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,12 @@ SPAN_DECLARE(int) t30_set_ecm_capability(t30_state_t *s, bool enabled)
}
/*- End of function --------------------------------------------------------*/

SPAN_DECLARE(void) t30_set_retransmit_capable(t30_state_t *s, bool enabled)
{
s->retransmit_capable = enabled;
}
/*- End of function --------------------------------------------------------*/

SPAN_DECLARE(void) t30_set_keep_bad_quality_pages(t30_state_t *s, bool keep_bad_pages)
{
s->keep_bad_pages = keep_bad_pages;
Expand Down

1 comment on commit c410e11

@coppice-git
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committed.

Please sign in to comment.