diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-17 15:18:07 +0100 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-01-03 16:40:47 +0000 |
commit | 5dc79ce6069a388db8c94a9fbe35cfee07445bb0 (patch) | |
tree | 4bbd28e401ba6f6f1f80a5ab8182f609433e038c /libmm-glib/mm-location-3gpp.h | |
parent | 2b18af89b4b46bdf1dc8701ba96c48a76d706336 (diff) |
libmm-glib: add autoptr cleanup functions for all types
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/100
Diffstat (limited to 'libmm-glib/mm-location-3gpp.h')
-rw-r--r-- | libmm-glib/mm-location-3gpp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-location-3gpp.h b/libmm-glib/mm-location-3gpp.h index abcb4b84..a630974b 100644 --- a/libmm-glib/mm-location-3gpp.h +++ b/libmm-glib/mm-location-3gpp.h @@ -55,6 +55,10 @@ struct _MMLocation3gppClass { GType mm_location_3gpp_get_type (void); +#if GLIB_CHECK_VERSION(2, 44, 0) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMLocation3gpp, g_object_unref) +#endif + guint mm_location_3gpp_get_mobile_country_code (MMLocation3gpp *self); guint mm_location_3gpp_get_mobile_network_code (MMLocation3gpp *self); gulong mm_location_3gpp_get_location_area_code (MMLocation3gpp *self); |