diff options
-rw-r--r-- | libempathy/empathy-call-factory.c | 17 | ||||
-rw-r--r-- | 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 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); |