mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
mm-provider: Implement get_country_code
This commit is contained in:
parent
69250ac121
commit
b880ddf1d7
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue