libmm-glib: add autoptr cleanup functions for all types

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/100
This commit is contained in:
Aleksander Morgado
2018-12-17 15:18:07 +01:00
committed by Dan Williams
parent 2b18af89b4
commit 5dc79ce606
37 changed files with 146 additions and 0 deletions

View File

@@ -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);