summaryrefslogtreecommitdiff
path: root/libmm-glib/mm-sim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-12-17 15:18:07 +0100
committerDan Williams <dcbw@redhat.com>2019-01-03 16:40:47 +0000
commit5dc79ce6069a388db8c94a9fbe35cfee07445bb0 (patch)
tree4bbd28e401ba6f6f1f80a5ab8182f609433e038c /libmm-glib/mm-sim.h
parent2b18af89b4b46bdf1dc8701ba96c48a76d706336 (diff)
downloadModemManager-5dc79ce6069a388db8c94a9fbe35cfee07445bb0.tar.gz
libmm-glib: add autoptr cleanup functions for all types
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/100
Diffstat (limited to 'libmm-glib/mm-sim.h')
-rw-r--r--libmm-glib/mm-sim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-sim.h b/libmm-glib/mm-sim.h
index 1998bf6e4..0f162efde 100644
--- a/libmm-glib/mm-sim.h
+++ b/libmm-glib/mm-sim.h
@@ -63,6 +63,10 @@ struct _MMSimClass {
GType mm_sim_get_type (void);
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMSim, g_object_unref)
+#endif
+
const gchar *mm_sim_get_path (MMSim *self);
gchar *mm_sim_dup_path (MMSim *self);