[farsight2/master] Add unblock-threads in proper places in python .def files

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:39 PST 2008


---
 python/pyfarsight.defs |   13 +++++++++++++
 python/rebuild-defs.sh |    8 ++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/python/pyfarsight.defs b/python/pyfarsight.defs
index bccdc59..9254ab3 100644
--- a/python/pyfarsight.defs
+++ b/python/pyfarsight.defs
@@ -293,6 +293,7 @@
 
 (define-method new_session
   (of-object "FsConference")
+  (unblock-threads t)
   (c-name "fs_conference_new_session")
   (return-type "FsSession*")
   (parameters
@@ -303,6 +304,7 @@
 
 (define-method new_participant
   (of-object "FsConference")
+  (unblock-threads t)
   (c-name "fs_conference_new_participant")
   (return-type "FsParticipant*")
   (parameters
@@ -368,6 +370,7 @@
 
 (define-method new_stream
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_new_stream")
   (return-type "FsStream*")
   (parameters
@@ -382,6 +385,7 @@
 
 (define-method start_telephony_event
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_start_telephony_event")
   (return-type "gboolean")
   (parameters
@@ -393,6 +397,7 @@
 
 (define-method stop_telephony_event
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_stop_telephony_event")
   (return-type "gboolean")
   (parameters
@@ -402,6 +407,7 @@
 
 (define-method set_send_codec
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_set_send_codec")
   (return-type "gboolean")
   (parameters
@@ -412,6 +418,7 @@
 
 (define-method set_codec_preferences
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_set_codec_preferences")
   (return-type "gboolean")
   (parameters
@@ -422,6 +429,7 @@
 
 (define-method emit_error
   (of-object "FsSession")
+  (unblock-threads t)
   (c-name "fs_session_emit_error")
   (return-type "none")
   (parameters
@@ -485,6 +493,7 @@
 
 (define-method set_remote_candidates
   (of-object "FsStream")
+  (unblock-threads t)
   (c-name "fs_stream_set_remote_candidates")
   (return-type "gboolean")
   (parameters
@@ -495,6 +504,7 @@
 
 (define-method select_candidate_pair
   (of-object "FsStream")
+  (unblock-threads t)
   (c-name "fs_stream_select_candidate_pair")
   (return-type "gboolean")
   (parameters
@@ -506,6 +516,7 @@
 
 (define-method set_remote_codecs
   (of-object "FsStream")
+  (unblock-threads t)
   (c-name "fs_stream_set_remote_codecs")
   (return-type "gboolean")
   (parameters
@@ -516,6 +527,7 @@
 
 (define-method emit_error
   (of-object "FsStream")
+  (unblock-threads t)
   (c-name "fs_stream_emit_error")
   (return-type "none")
   (parameters
@@ -527,6 +539,7 @@
 
 (define-method emit_src_pad_added
   (of-object "FsStream")
+  (unblock-threads t)
   (c-name "fs_stream_emit_src_pad_added")
   (return-type "none")
   (parameters
diff --git a/python/rebuild-defs.sh b/python/rebuild-defs.sh
index 91b565e..cd0f51f 100755
--- a/python/rebuild-defs.sh
+++ b/python/rebuild-defs.sh
@@ -21,3 +21,11 @@ for h in $HEADERS; do
     python /usr/share/pygtk/2.0/codegen/h2def.py \
 	--defsfilter=${filter} ${srcdir}/$h >> $output
 done
+
+sed -e "/of-object \"FsSession\"/ a \
+      \  (unblock-threads t)" \
+    -e "/of-object \"FsStream\"/ a \
+      \  (unblock-threads t)" \
+    -e "/of-object \"FsConference\"/ a \
+      \  (unblock-threads t)" \
+    -i pyfarsight.defs
-- 
1.5.6.5




More information about the farsight-commits mailing list