summaryrefslogtreecommitdiff
path: root/src/gclue-modem-gps.c
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2021-10-24 23:09:15 +0300
committerZeeshan Ali <zeenix@gmail.com>2021-11-07 20:31:35 +0000
commitb89187e77147b797e317977579fc6486d05fdb65 (patch)
tree3c412f6e665a3db3aff700a38a1656259d87a4c8 /src/gclue-modem-gps.c
parent02395f50142718ddf4136ec47b0f599a6b6e3e95 (diff)
downloadgeoclue-b89187e77147b797e317977579fc6486d05fdb65.tar.gz
modem: Make 'fix-gps' signal parameter a string array
Change the only parameter of the 'fix-gps' signal to a NULL terminated array of strings, i.e. G_TYPE_STRV. The on_get_gps_nmea_ready function in gclue-modem-manager.c now emits 'fix-gps' with NMEA GGA and RMC sentences read from ModemManager. The signal handler on_fix_gps in gclue-modem-gps.c now accepts a string array argument and calls gclue_location_create_from_nmeas to create a new location. Fixes #147.
Diffstat (limited to 'src/gclue-modem-gps.c')
-rw-r--r--src/gclue-modem-gps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gclue-modem-gps.c b/src/gclue-modem-gps.c
index 4dfa9b7..78d5e2f 100644
--- a/src/gclue-modem-gps.c
+++ b/src/gclue-modem-gps.c
@@ -209,7 +209,7 @@ gclue_modem_gps_get_singleton (void)
static void
on_fix_gps (GClueModem *modem,
- const char *nmea,
+ const char *nmeas[],
gpointer user_data)
{
GClueLocationSource *source = GCLUE_LOCATION_SOURCE (user_data);
@@ -218,9 +218,9 @@ on_fix_gps (GClueModem *modem,
GError *error = NULL;
prev_location = gclue_location_source_get_location (source);
- location = gclue_location_create_from_nmea (nmea,
- prev_location,
- &error);
+ location = gclue_location_create_from_nmeas (nmeas,
+ prev_location,
+ &error);
if (error != NULL) {
g_warning ("Error: %s", error->message);