1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-14 17:19:27 +00:00

emergency-call-types: Add location source

We named it fallback but location is a better name as we get it
from the current country code.
This commit is contained in:
Guido Günther 2023-07-19 12:41:53 +02:00
parent 4951cf5b3b
commit edb46acfa5

View file

@ -8,9 +8,18 @@
# pragma once
/**
* CallsEmergencyContactSource:
*
* Source of the emergency numbers:
*
* CALLS_EMERGENCY_CONTACT_SOURCE_UNKNOWN: No idea where it came from
* CALLS_EMERGENCY_CONTACT_SOURCE_LOCATION: Based on the devices current location
* CALLS_EMERGENCY_CONTACT_SOURCE_SIM: Based on information on the SIM card
*/
typedef enum {
CALLS_EMERGENCY_CONTACT_SOURCE_UNKNOWN = 0,
CALLS_EMERGENCY_CONTACT_SOURCE_FALLBACK = (1 << 0),
CALLS_EMERGENCY_CONTACT_SOURCE_LOCATION = (1 << 0),
CALLS_EMERGENCY_CONTACT_SOURCE_SIM = (1 << 1),
} CallsEmergencyContactSource;