From b880ddf1d72253143f53f1921311b4b5e530fb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 21 Dec 2022 19:13:24 +0100 Subject: [PATCH] mm-provider: Implement get_country_code --- plugins/provider/mm/calls-mm-origin.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 75d22f4..4b26173 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -354,6 +354,17 @@ supports_protocol (CallsOrigin *origin, } +static const char * +get_country_code (CallsOrigin *origin) +{ + CallsMMOrigin *self = CALLS_MM_ORIGIN (origin); + + g_assert (CALLS_IS_MM_ORIGIN (origin)); + + return self->country_code; +} + + static void remove_calls (CallsMMOrigin *self, const char *reason) { @@ -984,6 +995,7 @@ calls_mm_origin_origin_interface_init (CallsOriginInterface *iface) { iface->dial = dial; iface->supports_protocol = supports_protocol; + iface->get_country_code = get_country_code; }