diff options
Diffstat (limited to 'liblightdm-gobject/lightdm/layout.h')
-rw-r--r-- | liblightdm-gobject/lightdm/layout.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/liblightdm-gobject/lightdm/layout.h b/liblightdm-gobject/lightdm/layout.h index 3e0687d0..c971980b 100644 --- a/liblightdm-gobject/lightdm/layout.h +++ b/liblightdm-gobject/lightdm/layout.h @@ -40,6 +40,14 @@ typedef struct void (*reserved6) (void); } LightDMLayoutClass; +#ifdef GLIB_VERSION_2_44 +typedef LightDMLayout *LightDMLayout_autoptr; +static inline void glib_autoptr_cleanup_LightDMLayout (LightDMLayout **_ptr) +{ + glib_autoptr_cleanup_GObject ((GObject **) _ptr); +} +#endif + GType lightdm_layout_get_type (void); GList *lightdm_get_layouts (void); |