From 8a4a7c6131b0f8d3a1457005d163721da1f8ae9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 20 Mar 2022 18:39:41 +0100 Subject: [PATCH] mm: Implement empty emegency call property This allows the tests to pass. --- plugins/provider/mm/calls-mm-origin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 08af8dc..a01b298 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -75,6 +75,7 @@ enum { PROP_CALLS, PROP_MODEM, PROP_COUNTRY_CODE, + PROP_EMERGENCY_NUMBERS, PROP_LAST_PROP, }; static GParamSpec *props[PROP_LAST_PROP]; @@ -661,6 +662,10 @@ get_property (GObject *object, g_value_set_string (value, self->country_code); break; + case PROP_EMERGENCY_NUMBERS: + g_value_set_boxed (value, NULL); + break; + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; @@ -942,6 +947,7 @@ calls_mm_origin_class_init (CallsMMOriginClass *klass) IMPLEMENTS (PROP_NAME, "name"); IMPLEMENTS (PROP_CALLS, "calls"); IMPLEMENTS (PROP_COUNTRY_CODE, "country-code"); + IMPLEMENTS (PROP_EMERGENCY_NUMBERS, "emergency-numbers"); #undef IMPLEMENTS