From 88cd7ce2220a74054d0ed28f19f9f49ef10c0e48 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 10 Dec 2021 08:02:08 +0100 Subject: [PATCH] call: Add unknown state This is the default fallback state and is useful f.e. in the oFono plugin if the GDBOVoiceCall doesn't provide a state in its' properties. --- src/calls-call.c | 2 +- src/calls-call.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calls-call.c b/src/calls-call.c index d704e7e..9e4bcdb 100644 --- a/src/calls-call.c +++ b/src/calls-call.c @@ -200,7 +200,7 @@ calls_call_class_init (CallsCallClass *klass) "State", "The current state of the call", CALLS_TYPE_CALL_STATE, - CALLS_CALL_STATE_ACTIVE, + CALLS_CALL_STATE_UNKNOWN, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); properties[PROP_PROTOCOL] = diff --git a/src/calls-call.h b/src/calls-call.h index ea8f369..08424ea 100644 --- a/src/calls-call.h +++ b/src/calls-call.h @@ -37,7 +37,8 @@ G_DECLARE_DERIVABLE_TYPE (CallsCall, calls_call, CALLS, CALL, GObject) typedef enum { - CALLS_CALL_STATE_ACTIVE = 1, + CALLS_CALL_STATE_UNKNOWN = 0, + CALLS_CALL_STATE_ACTIVE, CALLS_CALL_STATE_HELD, CALLS_CALL_STATE_DIALING, CALLS_CALL_STATE_ALERTING,