diff options
author | Krzesimir Nowak <krzesimir@kinvolk.io> | 2016-05-26 11:53:11 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-05-27 11:20:00 +0000 |
commit | 27f0c6980af23485ee007d1b5ae0ecac6d6736df (patch) | |
tree | 4b2b7ecc568b4d65ba719ef17e2d6e21ebfec26a /src/libostree/ostree-gpg-verifier.h | |
parent | 582169f83e7170228008ff24c159e15b7ac69565 (diff) | |
download | ostree-27f0c6980af23485ee007d1b5ae0ecac6d6736df.tar.gz |
repo: Factor out setting up a GPG verifier
Moved out setting up a GPG verifier to a separate function, as I would
like to use it for the any data verification function in the following
commit.
Closes: #310
Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-gpg-verifier.h')
-rw-r--r-- | src/libostree/ostree-gpg-verifier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libostree/ostree-gpg-verifier.h b/src/libostree/ostree-gpg-verifier.h index 209f7342..2db39f3b 100644 --- a/src/libostree/ostree-gpg-verifier.h +++ b/src/libostree/ostree-gpg-verifier.h @@ -35,6 +35,11 @@ G_BEGIN_DECLS typedef struct OstreeGpgVerifier OstreeGpgVerifier; +/* If this type becomes public in future, move this autoptr cleanup + * definition to the ostree-autocleanups.h header file. Right now it + * relies on glnx's fallback definition of the macro. */ +G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeGpgVerifier, g_object_unref) + GType _ostree_gpg_verifier_get_type (void); OstreeGpgVerifier *_ostree_gpg_verifier_new (void); |