This allows using e.g. g_autoptr(UpDevice) in other programs, but does not make upower itself use g_autoptr, or require a new enough glib to support it.
0825c16 Support g_autoptr() for all libupower-glib object types
libupower-glib/Makefile.am | 1 +
libupower-glib/up-autocleanups.h | 40 ++++++++++++++++++++++++++++++++++++++
libupower-glib/upower.h | 2 ++
3 files changed, 43 insertions(+)
Upstream: cgit.freedesktop.org