[empathy] Allow the call factory to create calls with specific types of media



commit 567c6f977d72adfc6f2a4d07311d1403bbb51d0c
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Thu May 7 15:20:47 2009 +0100

    Allow the call factory to create calls with specific types of media
---
 libempathy/empathy-call-factory.c |   17 ++++++++++++++---
 libempathy/empathy-call-factory.h |    3 +++
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/libempathy/empathy-call-factory.c b/libempathy/empathy-call-factory.c
index 5d97b73..87f0593 100644
--- a/libempathy/empathy-call-factory.c
+++ b/libempathy/empathy-call-factory.c
@@ -133,15 +133,18 @@ empathy_call_factory_get (void)
 }
 
 void
-empathy_call_factory_new_call (EmpathyCallFactory *factory,
-  EmpathyContact *contact)
+empathy_call_factory_new_call_with_streams (EmpathyCallFactory *factory,
+    EmpathyContact *contact,
+    gboolean initial_audio,
+    gboolean initial_video)
 {
   EmpathyCallHandler *handler;
 
   g_return_if_fail (factory != NULL);
   g_return_if_fail (contact != NULL);
 
-  handler = empathy_call_handler_new_for_contact (contact);
+  handler = empathy_call_handler_new_for_contact_with_streams (contact,
+    initial_audio, initial_video);
 
   g_signal_emit (factory, signals[NEW_CALL_HANDLER], 0,
     handler, TRUE);
@@ -149,6 +152,14 @@ empathy_call_factory_new_call (EmpathyCallFactory *factory,
   g_object_unref (handler);
 }
 
+
+void
+empathy_call_factory_new_call (EmpathyCallFactory *factory,
+    EmpathyContact *contact)
+{
+  empathy_call_factory_new_call_with_streams (factory, contact, TRUE, FALSE);
+}
+
 void
 empathy_call_factory_claim_channel (EmpathyCallFactory *factory,
   EmpathyDispatchOperation *operation)
diff --git a/libempathy/empathy-call-factory.h b/libempathy/empathy-call-factory.h
index 47d45d7..27b2059 100644
--- a/libempathy/empathy-call-factory.h
+++ b/libempathy/empathy-call-factory.h
@@ -67,6 +67,9 @@ EmpathyCallFactory *empathy_call_factory_get (void);
 void empathy_call_factory_new_call (EmpathyCallFactory *factory,
   EmpathyContact *contact);
 
+void empathy_call_factory_new_call_with_streams (EmpathyCallFactory *factory,
+  EmpathyContact *contact, gboolean initial_audio, gboolean initial_video);
+
 void empathy_call_factory_claim_channel (EmpathyCallFactory *factory,
   EmpathyDispatchOperation *operation);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]