]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix mod_fax build with latest spandsp
authorMichael Jerris <mike@jerris.com>
Wed, 3 Sep 2008 20:03:53 +0000 (20:03 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 3 Sep 2008 20:03:53 +0000 (20:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9427 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fax/Makefile
src/mod/applications/mod_fax/mod_fax.c

index 3a19ceecc29a347199996f456699fbf51aad2bb0..ff2991e7ccc08c18528348e1c18e8aa4dd17a886 100644 (file)
@@ -3,7 +3,7 @@ BASE=../../../..
 SPANDSP_DIR=$(BASE)/libs/spandsp
 SPANDSP_LA=$(SPANDSP_DIR)/src/libspandsp.la
 
-LOCAL_CFLAGS=-I$(SPANDSP_DIR)/src
+LOCAL_CFLAGS=-I$(SPANDSP_DIR)/src -w
 LOCAL_LIBADD=$(SPANDSP_LA)
 
 include $(BASE)/build/modmake.rules
index 833fac8729df9b12d9451818488707e584109df3..03785a5f983610103a4f1e56e17057f4033c8d3c 100644 (file)
@@ -148,19 +148,19 @@ SWITCH_STANDARD_APP(rxfax_function)
     }
 
     fax_init(&fax, calling_party);
-    t30_set_tx_ident(&fax.t30_state, "test");
-    t30_set_tx_page_header_info(&fax.t30_state, "test");
-    t30_set_rx_file(&fax.t30_state, file_name, -1);
+    t30_set_tx_ident(&fax.t30, "test");
+    t30_set_tx_page_header_info(&fax.t30, "test");
+    t30_set_rx_file(&fax.t30, file_name, -1);
 
-    t30_set_phase_d_handler(&fax.t30_state, phase_d_handler, NULL);
-    t30_set_phase_e_handler(&fax.t30_state, phase_e_handler, NULL);
+    t30_set_phase_d_handler(&fax.t30, phase_d_handler, NULL);
+    t30_set_phase_e_handler(&fax.t30, phase_e_handler, NULL);
 
-    t30_set_ecm_capability(&fax.t30_state, TRUE);
-    t30_set_supported_compressions(&fax.t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION);
+    t30_set_ecm_capability(&fax.t30, TRUE);
+    t30_set_supported_compressions(&fax.t30, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION);
 
-    t30_set_supported_image_sizes(&fax.t30_state, T30_SUPPORT_US_LETTER_LENGTH | T30_SUPPORT_US_LEGAL_LENGTH | T30_SUPPORT_UNLIMITED_LENGTH
+    t30_set_supported_image_sizes(&fax.t30, T30_SUPPORT_US_LETTER_LENGTH | T30_SUPPORT_US_LEGAL_LENGTH | T30_SUPPORT_UNLIMITED_LENGTH
                                   | T30_SUPPORT_215MM_WIDTH | T30_SUPPORT_255MM_WIDTH | T30_SUPPORT_303MM_WIDTH);
-    t30_set_supported_resolutions(&fax.t30_state, T30_SUPPORT_STANDARD_RESOLUTION | T30_SUPPORT_FINE_RESOLUTION | T30_SUPPORT_SUPERFINE_RESOLUTION
+    t30_set_supported_resolutions(&fax.t30, T30_SUPPORT_STANDARD_RESOLUTION | T30_SUPPORT_FINE_RESOLUTION | T30_SUPPORT_SUPERFINE_RESOLUTION
                                   | T30_SUPPORT_R8_RESOLUTION | T30_SUPPORT_R16_RESOLUTION);
 
     write_frame.codec = &write_codec;
@@ -192,7 +192,7 @@ SWITCH_STANDARD_APP(rxfax_function)
 
  done:
 
-    t30_terminate(&fax.t30_state);
+    t30_terminate(&fax.t30);
     fax_release(&fax);
     
     if (read_codec.implementation) {