aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-05-07 22:20:47 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-05-18 23:17:28 +0800
commit567c6f977d72adfc6f2a4d07311d1403bbb51d0c (patch)
tree631a605cfdf5d0d73b75995416706a22ce196e1e /libempathy
parentfdb4f5cd91ab28a2216d14388e707ba61efab353 (diff)
downloadgsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar.gz
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar.bz2
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar.lz
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar.xz
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.tar.zst
gsoc2013-empathy-567c6f977d72adfc6f2a4d07311d1403bbb51d0c.zip
Allow the call factory to create calls with specific types of media
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-call-factory.c17
-rw-r--r--libempathy/empathy-call-factory.h3
2 files changed, 17 insertions, 3 deletions
diff --git a/libempathy/empathy-call-factory.c b/libempathy/empathy-call-factory.c
index 5d97b7303..87f0593be 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 47d45d780..27b205973 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);