FreeBSD Bugzilla – Attachment 229312 Details for
Bug 258999
comms/spandsp: Update to 3.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch to spandsp + fixes to opal, asterisk16, & asterisk18
0001-comms-spandsp-Update-to-3.0.0.patch (text/plain), 20.16 KB, created by
Dustin Marquess
on 2021-11-06 04:46:55 UTC
(
hide
)
Description:
Updated patch to spandsp + fixes to opal, asterisk16, & asterisk18
Filename:
MIME Type:
Creator:
Dustin Marquess
Created:
2021-11-06 04:46:55 UTC
Size:
20.16 KB
patch
obsolete
>From 5bbdd04d52eef41ca8ee1f88e6058d2a7f5e1a09 Mon Sep 17 00:00:00 2001 >From: JailBird <jailbird@fdf.net> >Date: Fri, 5 Nov 2021 23:41:14 -0500 >Subject: [PATCH] comms/spandsp: Update to 3.0.0 > >- Patch net/opal's plugins_fax/fax_spandsp/spandsp_fax.cpp to work with new version >- Patch net/asterisk16's res/res_fax_spandsp.c to work with the new version >- Patch net/asterisk18's res/res_fax_spandsp.c to work with the new version >Asterisk patch is being sent upstream separately >--- > comms/spandsp/Makefile | 18 ++- > comms/spandsp/distinfo | 5 +- > comms/spandsp/files/patch-Makefile.am | 6 +- > comms/spandsp/files/patch-configure.ac | 37 ----- > comms/spandsp/pkg-plist | 18 ++- > .../files/patch-res_res__fax__spandsp.c | 62 +++++++ > .../files/patch-res_res__fax__spandsp.c | 62 +++++++ > ...-plugins_fax_fax__spandsp_spandsp__fax.cpp | 153 ++++++++++++++++++ > 8 files changed, 312 insertions(+), 49 deletions(-) > delete mode 100644 comms/spandsp/files/patch-configure.ac > create mode 100644 net/asterisk16/files/patch-res_res__fax__spandsp.c > create mode 100644 net/asterisk18/files/patch-res_res__fax__spandsp.c > create mode 100644 net/opal/files/patch-plugins_fax_fax__spandsp_spandsp__fax.cpp > >diff --git a/comms/spandsp/Makefile b/comms/spandsp/Makefile >index fea700f1e..84d75333f 100644 >--- a/comms/spandsp/Makefile >+++ b/comms/spandsp/Makefile >@@ -1,20 +1,28 @@ > # Created by: wlloyd@slap.net > > PORTNAME= spandsp >-PORTVERSION= 0.0.6 >+DISTVERSION= ${SPANDSP_VERSION}.g20211014 > CATEGORIES= comms >-MASTER_SITES= http://www.soft-switch.org/downloads/spandsp/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= jailbird@fdf.net > COMMENT= DSP library and software FAX machine > > LICENSE= LGPL21 > > LIB_DEPENDS= libtiff.so:graphics/tiff > >+USES= autoreconf gmake jpeg libtool localbase >+ >+USE_GITHUB= yes >+GH_ACCOUNT= freeswitch >+GH_TAGNAME= ${GITHUB_COMMIT} >+GITHUB_COMMIT= 284fe91 >+ >+USE_LDCONFIG= yes >+ > GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip >-USES= autoreconf gmake libtool localbase >-USE_LDCONFIG= yes >+ >+SPANDSP_VERSION= 3.0.0 > > .include <bsd.port.mk> >diff --git a/comms/spandsp/distinfo b/comms/spandsp/distinfo >index b486ff476..3c66f956f 100644 >--- a/comms/spandsp/distinfo >+++ b/comms/spandsp/distinfo >@@ -1,2 +1,3 @@ >-SHA256 (spandsp-0.0.6.tar.gz) = cc053ac67e8ac4bb992f258fd94f275a7872df959f6a87763965feabfdcc9465 >-SIZE (spandsp-0.0.6.tar.gz) = 3309837 >+TIMESTAMP = 1634216290 >+SHA256 (freeswitch-spandsp-3.0.0.g20211014-284fe91_GH0.tar.gz) = 288b12eb058d615c526e85fe0fe339293e5713b3513e7918043e93e52e4efd49 >+SIZE (freeswitch-spandsp-3.0.0.g20211014-284fe91_GH0.tar.gz) = 3584374 >diff --git a/comms/spandsp/files/patch-Makefile.am b/comms/spandsp/files/patch-Makefile.am >index ce87f18af..6b2648aa8 100644 >--- a/comms/spandsp/files/patch-Makefile.am >+++ b/comms/spandsp/files/patch-Makefile.am >@@ -1,6 +1,6 @@ >---- Makefile.am.orig 2014-09-03 14:15:04.000000000 +0300 >-+++ Makefile.am 2014-09-03 14:15:16.000000000 +0300 >-@@ -61,7 +61,7 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTD >+--- Makefile.am.orig 2021-08-14 20:26:24 UTC >++++ Makefile.am >+@@ -60,7 +60,7 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS) > > DIST_SUBDIRS = src doc test-data spandsp-sim tests > >diff --git a/comms/spandsp/files/patch-configure.ac b/comms/spandsp/files/patch-configure.ac >deleted file mode 100644 >index 686307708..000000000 >--- a/comms/spandsp/files/patch-configure.ac >+++ /dev/null >@@ -1,37 +0,0 @@ >---- configure.ac.orig 2014-11-11 15:56:10.000000000 +0100 >-+++ configure.ac 2014-11-11 15:58:13.000000000 +0100 >-@@ -198,7 +198,6 @@ AC_CHECK_HEADERS([stdlib.h]) >- AC_CHECK_HEADERS([string.h]) >- AC_CHECK_HEADERS([strings.h]) >- AC_CHECK_HEADERS([malloc.h]) >--AC_CHECK_HEADERS([tgmath.h], [INSERT_TGMATH_HEADER="#include <tgmath.h>"]) >- AC_CHECK_HEADERS([math.h], [INSERT_MATH_HEADER="#include <math.h>"]) >- AC_CHECK_HEADERS([float.h]) >- AC_CHECK_HEADERS([fcntl.h]) >-@@ -331,7 +330,7 @@ AX_CHECK_EXPORT_CAPABILITY([$host], >- >- case "${ax_cv_c_compiler_vendor}" in >- gnu) >-- COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >-+ COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >- if test "$enable_avx" = "yes" ; then >- COMP_VENDOR_CFLAGS="-mavx $COMP_VENDOR_CFLAGS" >- fi >-@@ -392,7 +391,7 @@ sun) >- REMOVE_FROM_VAR(CFLAGS, -Xc) >- ;; >- intel) >-- COMP_VENDOR_CFLAGS="-std=c99 -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE=1 -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >-+ COMP_VENDOR_CFLAGS="-std=c99 -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE=1 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >- if test "$enable_avx" = "yes" ; then >- COMP_VENDOR_CFLAGS="-mavx $COMP_VENDOR_CFLAGS" >- fi >-@@ -426,7 +425,7 @@ intel) >- COMP_VENDOR_LDFLAGS= >- ;; >- *) >-- COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >-+ COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" >- COMP_VENDOR_LDFLAGS= >- ;; >- esac >diff --git a/comms/spandsp/pkg-plist b/comms/spandsp/pkg-plist >index 26cc7a306..f983fa3af 100644 >--- a/comms/spandsp/pkg-plist >+++ b/comms/spandsp/pkg-plist >@@ -1,5 +1,6 @@ > include/spandsp.h > include/spandsp/adsi.h >+include/spandsp/alloc.h > include/spandsp/arctan2.h > include/spandsp/async.h > include/spandsp/at_interpreter.h >@@ -14,6 +15,7 @@ include/spandsp/complex_filters.h > include/spandsp/complex_vector_float.h > include/spandsp/crc.h > include/spandsp/dc_restore.h >+include/spandsp/data_modems.h > include/spandsp/dds.h > include/spandsp/dtmf.h > include/spandsp/echo.h >@@ -84,6 +86,7 @@ include/spandsp/private/awgn.h > include/spandsp/private/bell_r2_mf.h > include/spandsp/private/bert.h > include/spandsp/private/bitstream.h >+include/spandsp/private/data_modems.h > include/spandsp/private/dtmf.h > include/spandsp/private/echo.h > include/spandsp/private/fax.h >@@ -102,6 +105,9 @@ include/spandsp/private/modem_connect_tones.h > include/spandsp/private/modem_echo.h > include/spandsp/private/noise.h > include/spandsp/private/oki_adpcm.h >+include/spandsp/private/playout.h >+include/spandsp/private/plc.h >+include/spandsp/private/power_meter.h > include/spandsp/private/queue.h > include/spandsp/private/schedule.h > include/spandsp/private/sig_tone.h >@@ -120,6 +126,10 @@ include/spandsp/private/t4_rx.h > include/spandsp/private/t4_t6_decode.h > include/spandsp/private/t4_t6_encode.h > include/spandsp/private/t4_tx.h >+include/spandsp/private/t42.h >+include/spandsp/private/t43.h >+include/spandsp/private/t81_t82_arith_coding.h >+include/spandsp/private/t85.h > include/spandsp/private/time_scale.h > include/spandsp/private/timezone.h > include/spandsp/private/tone_detect.h >@@ -143,10 +153,14 @@ include/spandsp/t4_rx.h > include/spandsp/t4_t6_decode.h > include/spandsp/t4_t6_encode.h > include/spandsp/t4_tx.h >+include/spandsp/t42.h >+include/spandsp/t43.h >+include/spandsp/t81_t82_arith_coding.h >+include/spandsp/t85.h > include/spandsp/timezone.h > include/spandsp/v18.h > lib/libspandsp.a > lib/libspandsp.so >-lib/libspandsp.so.2 >-lib/libspandsp.so.2.0.0 >+lib/libspandsp.so.3 >+lib/libspandsp.so.3.0.0 > libdata/pkgconfig/spandsp.pc >diff --git a/net/asterisk16/files/patch-res_res__fax__spandsp.c b/net/asterisk16/files/patch-res_res__fax__spandsp.c >new file mode 100644 >index 000000000..7efe45d3e >--- /dev/null >+++ b/net/asterisk16/files/patch-res_res__fax__spandsp.c >@@ -0,0 +1,62 @@ >+--- res/res_fax_spandsp.c.orig 2021-11-02 08:40:01 UTC >++++ res/res_fax_spandsp.c >+@@ -167,8 +167,8 @@ struct spandsp_pvt { >+ static int spandsp_v21_new(struct spandsp_pvt *p); >+ static void session_destroy(struct spandsp_pvt *p); >+ static int t38_tx_packet_handler(t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count); >+-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code); >+-static void spandsp_log(int level, const char *msg); >++static void t30_phase_e_handler(void *data, int completion_code); >++static void spandsp_log(void *user_data, int level, const char *msg); >+ static int update_stats(struct spandsp_pvt *p, int completion_code); >+ static int spandsp_modems(struct ast_fax_session_details *details); >+ >+@@ -375,10 +375,11 @@ static int update_stats(struct spandsp_pvt *p, int com >+ * This function pulls stats from the spandsp stack and stores them for res_fax >+ * to use later. >+ */ >+-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code) >++static void t30_phase_e_handler(void *data, int completion_code) >+ { >+ struct ast_fax_session *s = data; >+ struct spandsp_pvt *p = s->tech_pvt; >++ t30_state_t *t30_state = p->t30_state; >+ char headerinfo[T30_MAX_PAGE_HEADER_INFO + 1]; >+ const char *c; >+ t30_stats_t stats; >+@@ -430,7 +431,7 @@ static void t30_phase_e_handler(t30_state_t *t30_state >+ * >+ * \note This function is a callback function called by spandsp. >+ */ >+-static void spandsp_log(int level, const char *msg) >++static void spandsp_log(void *user_data, int level, const char *msg) >+ { >+ if (level == SPAN_LOG_ERROR) { >+ ast_log(LOG_ERROR, "%s", msg); >+@@ -449,7 +450,7 @@ static void set_logging(logging_state_t *state, struct >+ level = SPAN_LOG_DEBUG_3; >+ } >+ >+- span_log_set_message_handler(state, spandsp_log); >++ span_log_set_message_handler(state, spandsp_log, NULL); >+ span_log_set_level(state, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | level); >+ } >+ >+@@ -479,7 +480,7 @@ static void set_file(t30_state_t *t30_state, struct as >+ static void set_ecm(t30_state_t *t30_state, struct ast_fax_session_details *details) >+ { >+ t30_set_ecm_capability(t30_state, details->option.ecm); >+- t30_set_supported_compressions(t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION); >++ t30_set_supported_compressions(t30_state, T4_COMPRESSION_T4_1D | T4_COMPRESSION_T4_2D | T4_COMPRESSION_T6); >+ } >+ >+ static int spandsp_v21_new(struct spandsp_pvt *p) >+@@ -1256,7 +1257,7 @@ static int load_module(void) >+ } >+ >+ /* prevent logging to stderr */ >+- span_set_message_handler(NULL); >++ span_set_message_handler(NULL, NULL); >+ >+ return AST_MODULE_LOAD_SUCCESS; >+ } >diff --git a/net/asterisk18/files/patch-res_res__fax__spandsp.c b/net/asterisk18/files/patch-res_res__fax__spandsp.c >new file mode 100644 >index 000000000..5ad7b22a4 >--- /dev/null >+++ b/net/asterisk18/files/patch-res_res__fax__spandsp.c >@@ -0,0 +1,62 @@ >+--- res/res_fax_spandsp.c.orig 2021-11-02 08:42:19 UTC >++++ res/res_fax_spandsp.c >+@@ -167,8 +167,8 @@ struct spandsp_pvt { >+ static int spandsp_v21_new(struct spandsp_pvt *p); >+ static void session_destroy(struct spandsp_pvt *p); >+ static int t38_tx_packet_handler(t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count); >+-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code); >+-static void spandsp_log(int level, const char *msg); >++static void t30_phase_e_handler(void *data, int completion_code); >++static void spandsp_log(void *user_data, int level, const char *msg); >+ static int update_stats(struct spandsp_pvt *p, int completion_code); >+ static int spandsp_modems(struct ast_fax_session_details *details); >+ >+@@ -375,10 +375,11 @@ static int update_stats(struct spandsp_pvt *p, int com >+ * This function pulls stats from the spandsp stack and stores them for res_fax >+ * to use later. >+ */ >+-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code) >++static void t30_phase_e_handler(void *data, int completion_code) >+ { >+ struct ast_fax_session *s = data; >+ struct spandsp_pvt *p = s->tech_pvt; >++ t30_state_t *t30_state = p->t30_state; >+ char headerinfo[T30_MAX_PAGE_HEADER_INFO + 1]; >+ const char *c; >+ t30_stats_t stats; >+@@ -430,7 +431,7 @@ static void t30_phase_e_handler(t30_state_t *t30_state >+ * >+ * \note This function is a callback function called by spandsp. >+ */ >+-static void spandsp_log(int level, const char *msg) >++static void spandsp_log(void *user_data, int level, const char *msg) >+ { >+ if (level == SPAN_LOG_ERROR) { >+ ast_log(LOG_ERROR, "%s", msg); >+@@ -449,7 +450,7 @@ static void set_logging(logging_state_t *state, struct >+ level = SPAN_LOG_DEBUG_3; >+ } >+ >+- span_log_set_message_handler(state, spandsp_log); >++ span_log_set_message_handler(state, spandsp_log, NULL); >+ span_log_set_level(state, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | level); >+ } >+ >+@@ -479,7 +480,7 @@ static void set_file(t30_state_t *t30_state, struct as >+ static void set_ecm(t30_state_t *t30_state, struct ast_fax_session_details *details) >+ { >+ t30_set_ecm_capability(t30_state, details->option.ecm); >+- t30_set_supported_compressions(t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION); >++ t30_set_supported_compressions(t30_state, T4_COMPRESSION_T4_1D | T4_COMPRESSION_T4_2D | T4_COMPRESSION_T6); >+ } >+ >+ static int spandsp_v21_new(struct spandsp_pvt *p) >+@@ -1256,7 +1257,7 @@ static int load_module(void) >+ } >+ >+ /* prevent logging to stderr */ >+- span_set_message_handler(NULL); >++ span_set_message_handler(NULL, NULL); >+ >+ return AST_MODULE_LOAD_SUCCESS; >+ } >diff --git a/net/opal/files/patch-plugins_fax_fax__spandsp_spandsp__fax.cpp b/net/opal/files/patch-plugins_fax_fax__spandsp_spandsp__fax.cpp >new file mode 100644 >index 000000000..7e74990ce >--- /dev/null >+++ b/net/opal/files/patch-plugins_fax_fax__spandsp_spandsp__fax.cpp >@@ -0,0 +1,153 @@ >+--- plugins/fax/fax_spandsp/spandsp_fax.cpp.orig 2013-02-20 02:18:10 UTC >++++ plugins/fax/fax_spandsp/spandsp_fax.cpp >+@@ -82,7 +82,7 @@ static PluginCodec_LogFunction LogFunction; >+ LogFunction(level, __FILE__, __LINE__, "FaxCodec", strm.str().c_str()); \ >+ } else (void)0 >+ >+-static void SpanDSP_Message(int level, const char *text) >++static void SpanDSP_Message(void *user_data, int level, const char *text) >+ { >+ if (*text != '\0' && LogFunction != NULL) { >+ if (level >= SPAN_LOG_DEBUG) >+@@ -117,7 +117,7 @@ static void SpanDSP_Message(int level, const char *tex >+ >+ static void InitLogging(logging_state_t * logging, const std::string & tag) >+ { >+- span_log_set_message_handler(logging, SpanDSP_Message); >++ span_log_set_message_handler(logging, SpanDSP_Message, NULL); >+ >+ int level = SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_DEBUG; >+ >+@@ -807,7 +807,7 @@ class MyStats : private t30_stats_t (public) >+ strm << "-1 (In progress)"; >+ strm << "\n" >+ "Bit Rate=" << stats.bit_rate << "\n" >+- "Encoding=" << stats.encoding << ' ' << CompressionNames[stats.encoding&3] << "\n" >++ "Encoding=" << stats.compression << ' ' << CompressionNames[stats.compression&3] << "\n" >+ "Error Correction=" << stats.error_correcting_mode << "\n" >+ "Tx Pages=" << (stats.m_receiving ? -1 : stats.pages_tx) << "\n" >+ "Rx Pages=" << (stats.m_receiving ? stats.pages_rx : -1) << "\n" >+@@ -839,25 +839,27 @@ class FaxTIFF : public FaxSpanDSP >+ char m_phase; >+ >+ protected: >++ t30_state_t * m_t30State; >++ >+ FaxTIFF() >+ : m_receiving(false) >+ , m_stationIdentifer("-") >+- , m_supported_image_sizes(T30_SUPPORT_US_LETTER_LENGTH | >+- T30_SUPPORT_US_LEGAL_LENGTH | >+- T30_SUPPORT_UNLIMITED_LENGTH | >+- T30_SUPPORT_A4_LENGTH | >+- T30_SUPPORT_B4_LENGTH | >+- T30_SUPPORT_215MM_WIDTH | >+- T30_SUPPORT_255MM_WIDTH | >+- T30_SUPPORT_303MM_WIDTH) >+- , m_supported_resolutions(T30_SUPPORT_STANDARD_RESOLUTION | >+- T30_SUPPORT_FINE_RESOLUTION | >+- T30_SUPPORT_SUPERFINE_RESOLUTION | >+- T30_SUPPORT_R8_RESOLUTION | >+- T30_SUPPORT_R16_RESOLUTION) >+- , m_supported_compressions(T30_SUPPORT_T4_1D_COMPRESSION | >+- T30_SUPPORT_T4_2D_COMPRESSION | >+- T30_SUPPORT_T6_COMPRESSION) >++ , m_supported_image_sizes(T4_SUPPORT_LENGTH_US_LETTER | >++ T4_SUPPORT_LENGTH_US_LEGAL | >++ T4_SUPPORT_LENGTH_UNLIMITED | >++ T4_SUPPORT_LENGTH_A4 | >++ T4_SUPPORT_LENGTH_B4 | >++ T4_SUPPORT_WIDTH_215MM | >++ T4_SUPPORT_WIDTH_255MM | >++ T4_SUPPORT_WIDTH_303MM) >++ , m_supported_resolutions(T4_RESOLUTION_R8_STANDARD | >++ T4_RESOLUTION_R8_FINE | >++ T4_RESOLUTION_R8_SUPERFINE | >++ T4_RESOLUTION_200_400 | >++ T4_RESOLUTION_400_400) >++ , m_supported_compressions(T4_COMPRESSION_T4_1D | >++ T4_COMPRESSION_T4_2D | >++ T4_COMPRESSION_T6) >+ , m_phase('A') >+ { >+ } >+@@ -932,6 +934,7 @@ class FaxTIFF : public FaxSpanDSP >+ PTRACE(3, m_tag << " Set transmit TIFF file to \"" << m_tiffFileName << '"'); >+ } >+ >++ m_t30State = t30state; >+ t30_set_phase_b_handler(t30state, PhaseB, this); >+ t30_set_phase_d_handler(t30state, PhaseD, this); >+ t30_set_phase_e_handler(t30state, PhaseE, this); >+@@ -948,7 +951,7 @@ class FaxTIFF : public FaxSpanDSP >+ >+ t30_set_supported_modems(t30state, m_supported_modems); >+ t30_set_supported_image_sizes(t30state, m_supported_image_sizes); >+- t30_set_supported_resolutions(t30state, m_supported_resolutions); >++ t30_set_supported_bilevel_resolutions(t30state, m_supported_resolutions); >+ t30_set_supported_compressions(t30state, m_supported_compressions); >+ t30_set_ecm_capability(t30state, m_useECM); >+ >+@@ -983,50 +986,50 @@ class FaxTIFF : public FaxSpanDSP >+ bool IsReceiving() const { return m_receiving; } >+ >+ >+- static int PhaseB(t30_state_t * t30state, void * user_data, int result) >++ static int PhaseB(void * user_data, int result) >+ { >+ if (user_data != NULL) >+- ((FaxTIFF *)user_data)->PhaseB(t30state, result); >++ ((FaxTIFF *)user_data)->PhaseB(result); >+ return T30_ERR_OK; >+ } >+ >+- static int PhaseD(t30_state_t * t30state, void * user_data, int result) >++ static int PhaseD(void * user_data, int result) >+ { >+ if (user_data != NULL) >+- ((FaxTIFF *)user_data)->PhaseD(t30state, result); >++ ((FaxTIFF *)user_data)->PhaseD(result); >+ return T30_ERR_OK; >+ } >+ >+- static void PhaseE(t30_state_t * t30state, void * user_data, int result) >++ static void PhaseE(void * user_data, int result) >+ { >+ if (user_data != NULL) >+- ((FaxTIFF *)user_data)->PhaseE(t30state, result); >++ ((FaxTIFF *)user_data)->PhaseE(result); >+ } >+ >+ >+ private: >+- void PhaseB(t30_state_t * t30state, int) >++ void PhaseB(int) >+ { >+ m_phase = 'B'; >+ PTRACE(3, m_tag << " SpanDSP entered Phase B:\n" >+- << MyStats(t30state, m_completed, m_receiving, m_phase)); >++ << MyStats(this->m_t30State, m_completed, m_receiving, m_phase)); >+ } >+ >+- void PhaseD(t30_state_t * t30state, int) >++ void PhaseD(int) >+ { >+ m_phase = 'D'; >+ PTRACE(3, m_tag << " SpanDSP entered Phase D:\n" >+- << MyStats(t30state, m_completed, m_receiving, m_phase)); >++ << MyStats(this->m_t30State, m_completed, m_receiving, m_phase)); >+ } >+ >+- void PhaseE(t30_state_t * t30state, int result) >++ void PhaseE(int result) >+ { >+ if (result >= 0) >+ m_completed = true; // Finished, exit codec loops >+ >+ m_phase = 'E'; >+ PTRACE(3, m_tag << " SpanDSP entered Phase E:\n" >+- << MyStats(t30state, m_completed, m_receiving, m_phase)); >++ << MyStats(this->m_t30State, m_completed, m_receiving, m_phase)); >+ } >+ }; >+ >-- >2.32.0 (Apple Git-132) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258999
:
228509
|
228681
|
228693
|
228696
|
229059
| 229312