Commit b50196e9 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

wwan: add service-providers.xml parser

This allows up to look up a default APN if the user doesn't pick one.
parent 7d3a957c
......@@ -3300,7 +3300,10 @@ src_devices_wwan_libnm_wwan_la_SOURCES = \
src/devices/wwan/nm-modem-manager.c \
src/devices/wwan/nm-modem-manager.h \
src/devices/wwan/nm-modem.c \
src/devices/wwan/nm-modem.h
src/devices/wwan/nm-modem.h \
src/devices/wwan/nm-service-providers.c \
src/devices/wwan/nm-service-providers.h \
$(NULL)
if WITH_OFONO
src_devices_wwan_libnm_wwan_la_SOURCES += \
......
......@@ -2,6 +2,7 @@ sources = files(
'nm-modem-broadband.c',
'nm-modem.c',
'nm-modem-manager.c',
'nm-service-provider.c',
)
deps = [
......
This diff is collapsed.
/*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2019 Red Hat, Inc.
*/
#ifndef __NETWORKMANAGER_SERVICE_PROVIDERS_H__
#define __NETWORKMANAGER_SERVICE_PROVIDERS_H__
typedef void (*NMServiceProvidersGsmApnCallback) (const char *apn,
char *username,
char *password,
const char *gateway,
char *auth_method,
const GSList *dns,
GError *error,
gpointer user_data);
void nm_service_providers_find_gsm_apn (const gchar *service_providers,
const gchar *mccmnc,
GCancellable *cancellable,
NMServiceProvidersGsmApnCallback callback,
gpointer user_data);
#endif /* __NETWORKMANAGER_SERVICE_PROVIDERS_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment