diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-25 22:14:08 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-07-10 22:42:49 +0200 |
commit | 21685b819ae3cfba164d58594f474b0e1e8c8324 (patch) | |
tree | 4531c5aaa4acac8ba549e953c8ac7ed4ba8c589d | |
parent | 0d32d73c88b2052ef7e36bae3c925026df1f9a63 (diff) | |
download | libqmi-21685b819ae3cfba164d58594f474b0e1e8c8324.tar.gz |
qmicli,loc: remove duplicated signal connections
The signals will be connected while ongoing only.
Reported by: Thomas Weißschuh <thomas@weissschuh.net>
-rw-r--r-- | src/qmicli/qmicli-loc.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/qmicli/qmicli-loc.c b/src/qmicli/qmicli-loc.c index 1d886faf..f600f763 100644 --- a/src/qmicli/qmicli-loc.c +++ b/src/qmicli/qmicli-loc.c @@ -609,29 +609,14 @@ monitoring_step_register_events (void) /* Configure events to enable */ - if (get_position_report_flag || follow_position_report_flag) { + if (get_position_report_flag || follow_position_report_flag) indication_mask |= QMI_LOC_EVENT_REGISTRATION_FLAG_POSITION_REPORT; - ctx->position_report_indication_id = g_signal_connect (ctx->client, - "position-report", - G_CALLBACK (position_report_received), - NULL); - } - if (get_gnss_sv_info_flag || follow_gnss_sv_info_flag) { + if (get_gnss_sv_info_flag || follow_gnss_sv_info_flag) indication_mask |= QMI_LOC_EVENT_REGISTRATION_FLAG_GNSS_SATELLITE_INFO; - ctx->gnss_sv_info_indication_id = g_signal_connect (ctx->client, - "gnss-sv-info", - G_CALLBACK (gnss_sv_info_received), - NULL); - } - if (follow_nmea_flag) { + if (follow_nmea_flag) indication_mask |= QMI_LOC_EVENT_REGISTRATION_FLAG_NMEA; - ctx->nmea_indication_id = g_signal_connect (ctx->client, - "nmea", - G_CALLBACK (nmea_received), - NULL); - } g_assert (indication_mask); |