src: Add old state as argument to CallsCall's state-changed signal

This commit is contained in:
Bob Ham
2018-11-09 12:38:04 +00:00
parent 74c3987ce1
commit 027c49e8bd
6 changed files with 47 additions and 12 deletions

View File

@@ -204,10 +204,11 @@ delete_call (CallsMMOrigin *self,
static void
call_state_changed_cb (CallsMMOrigin *self,
CallsCallState state,
CallsCallState new_state,
CallsCallState old_state,
CallsCall *call)
{
if (state != CALLS_CALL_STATE_DISCONNECTED)
if (new_state != CALLS_CALL_STATE_DISCONNECTED)
{
return;
}