comapt: Add FpDeviceClass compatibility autoptr and use it

This commit is contained in:
Marco Trevisan (Treviño)
2020-01-30 14:47:12 +01:00
committed by Benjamin Berg
parent 169ca1ba77
commit cfbd5d27b7
5 changed files with 12 additions and 12 deletions

View File

@@ -31,3 +31,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (GParamSpec, g_param_spec_unref);
#endif
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void))(f))
#if !GLIB_CHECK_VERSION (2, 63, 3)
typedef struct _FpDeviceClass FpDeviceClass;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FpDeviceClass, g_type_class_unref);
#endif