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

@@ -19,6 +19,7 @@ test_env = [
test_cflags = [
'-DFOR_TESTING',
'-Wno-error=deprecated-declarations',
'-DTEST_DATABASE="@0@"'.format(meson.current_source_dir() / 'data' / 'serviceproviders.xml'),
]
test_link_args = [
@@ -52,6 +53,19 @@ t = executable('emergency-call-types', test_sources,
)
test('emergency-call-types', t, env: test_env)
test_sources = [ 'test-service-providers.c' ]
t = executable('service-providers', test_sources,
c_args : test_cflags,
link_args: test_link_args,
pie: true,
link_with : [calls_vala, libcalls],
dependencies: calls_deps,
include_directories : [
calls_includes,
]
)
test('service-providers', t, env: test_env)
test_sources = [ 'test-manager.c' ]
t = executable('manager', test_sources,