mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 16:40:13 +01:00
shared: propagate type for g_object_ref()
See related bug https://bugzilla.gnome.org/show_bug.cgi?id=790697 (cherry picked from commit7ca601d529) (cherry picked from commit85b1c11b8f)
This commit is contained in:
parent
9f3d152f47
commit
23bf70e654
2 changed files with 6 additions and 0 deletions
|
|
@ -452,4 +452,9 @@ _nm_g_variant_new_take_string (gchar *string)
|
|||
}
|
||||
#define g_variant_new_take_string _nm_g_variant_new_take_string
|
||||
|
||||
#if !GLIB_CHECK_VERSION (2, 56, 0)
|
||||
#define g_object_ref(Obj) ((typeof(Obj)) g_object_ref (Obj))
|
||||
#define g_object_ref_sink(Obj) ((typeof(Obj)) g_object_ref_sink (Obj))
|
||||
#endif
|
||||
|
||||
#endif /* __NM_GLIB_H__ */
|
||||
|
|
|
|||
|
|
@ -528,6 +528,7 @@ nm_g_object_ref (gpointer obj)
|
|||
g_object_ref (obj);
|
||||
return obj;
|
||||
}
|
||||
#define nm_g_object_ref(obj) ((typeof (obj)) nm_g_object_ref (obj))
|
||||
|
||||
static inline void
|
||||
nm_g_object_unref (gpointer obj)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue