[Pkg-gnupg-commit] [gpgme] 270/412: Cpp: Clarify ownership of provider classes
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:27:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 21d5e71d486da8e37cf53f2b968646b39a6daa72
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Wed Aug 10 12:04:16 2016 +0200
Cpp: Clarify ownership of provider classes
* lang/cpp/src/context.h: Note that the context does not take
ownership of providers.
---
lang/cpp/src/context.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h
index c7c0ecb..70ab079 100644
--- a/lang/cpp/src/context.h
+++ b/lang/cpp/src/context.h
@@ -102,9 +102,23 @@ public:
void addKeyListMode(unsigned int keyListMode);
unsigned int keyListMode() const;
+ /** Set the passphrase provider
+ *
+ * To avoid problems where a class using a context registers
+ * itself as the provider the Context does not take ownership
+ * of the provider and the caller must ensure that the provider
+ * is deleted if it is no longer needed.
+ */
void setPassphraseProvider(PassphraseProvider *provider);
PassphraseProvider *passphraseProvider() const;
+ /** Set the progress provider
+ *
+ * To avoid problems where a class using a context registers
+ * itself as the provider the Context does not take ownership
+ * of the provider and the caller must ensure that the provider
+ * is deleted if it is no longer needed.
+ */
void setProgressProvider(ProgressProvider *provider);
ProgressProvider *progressProvider() const;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list