aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-call-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-call-factory.c')
-rw-r--r--libempathy/empathy-call-factory.c17
1 files changed, 14 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)