aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-location-gps-nmea.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-01 09:22:41 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-01 09:22:41 +0100
commit70910a6713fed1996afbde69d0be18ac55ae8244 (patch)
tree22ef9d913a6b168f9610fd5e29ba337058a73b9a /libmm-glib/mm-location-gps-nmea.c
parent6c1991e93063181e152c20eb69500cef8e9b1a37 (diff)
libmm-glib,nmea: deprecate mm_location_gps_nmea_build_full()
The new mm_location_gps_nmea_get_traces() is a much more generic way to retrieve the full list of traces and suits the libmm-glib API much better.
Diffstat (limited to 'libmm-glib/mm-location-gps-nmea.c')
-rw-r--r--libmm-glib/mm-location-gps-nmea.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libmm-glib/mm-location-gps-nmea.c b/libmm-glib/mm-location-gps-nmea.c
index 8bc7db90..6b6b95c4 100644
--- a/libmm-glib/mm-location-gps-nmea.c
+++ b/libmm-glib/mm-location-gps-nmea.c
@@ -188,6 +188,8 @@ mm_location_gps_nmea_get_traces (MMLocationGpsNmea *self)
/*****************************************************************************/
+#ifndef MM_DISABLE_DEPRECATED
+
static void
build_full_foreach (const gchar *trace_type,
const gchar *trace,
@@ -203,12 +205,15 @@ build_full_foreach (const gchar *trace_type,
* mm_location_gps_nmea_build_full:
* @self: a #MMLocationGpsNmea.
*
- * Gets a compilation of all cached traces.
+ * Gets a compilation of all cached traces, in a single string.
+ * Traces are separated by '\r\n'.
*
* Returns: (transfer full): a string containing all traces, or #NULL if none
* available. The returned value should be freed with g_free().
*
* Since: 1.0
+ * Deprecated: 1.14: user should use mm_location_gps_nmea_get_traces() instead,
+ * which provides a much more generic interface to the full list of traces.
*/
gchar *
mm_location_gps_nmea_build_full (MMLocationGpsNmea *self)
@@ -222,6 +227,8 @@ mm_location_gps_nmea_build_full (MMLocationGpsNmea *self)
return g_string_free (built, FALSE);
}
+#endif
+
/*****************************************************************************/
/**