libostree: Add g_autoptr() support for the public types

To avoid breaking the ostree users we hide the autoptr setup behind an
OSTREE_WITH_AUTOCLEANUPS variable. The variable is set to 0 by
default, so users that want to start using them, have to define the
variable themselves to 1.

Probably after some transition period, the variable will be set 1 by
default.

This is conditional on GLib >= 2.44.0 being available. It does not
bump ostree's dependency on GLib.

Closes: #295
Approved by: cgwalters
This commit is contained in:
Krzesimir Nowak authored and Atomic Bot committed 2016-05-17 21:13:19 +00:00
1 parent 441c03ba9e
commit 51e4e3b364
3 files changed
+68

No files matched your search

+2
View File
@@ -31,3 +31,5 @@
#include <ostree-bootconfig-parser.h>
#include <ostree-diff.h>
#include <ostree-gpg-verify-result.h>
#include <ostree-autocleanups.h>