service-providers: Add parsing for service provider info

We currently only need the emergency number information

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
This commit is contained in:
Guido Günther
2025-09-07 17:43:28 +02:00
committed by Marge Bot
parent 5d751f3143
commit 07d751f958
7 changed files with 647 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
/*
* Copyright (C) 2025 The Phosh.mobi e.V.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <gio/gio.h>
G_BEGIN_DECLS
void calls_service_providers_get_emergency_info (const char *serviceproviders,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GHashTable *calls_service_providers_get_emergency_info_finish (GAsyncResult *res,
GError **error);
GHashTable *calls_service_providers_get_emergency_info_sync (const char *serviceproviders,
GError **error) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS