[calls] call: Add unknown state



commit 88cd7ce2220a74054d0ed28f19f9f49ef10c0e48
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Dec 10 08:02:08 2021 +0100

    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 d704e7e3..9e4bcdbe 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 ea8f3699..08424eae 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]