From cbcea4a09b1309a4bd822247a8dfcdcb73041f9c Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 16 Jun 2023 12:30:51 +0200 Subject: cpp: Expose gpgme_data_set_flag through cpp API * lang/cpp/src/data.cpp (Data::setFlag): New. * lang/cpp/src/data.h: Update accordingly. * NEWS: Mention this. -- This exposes the generic flag mechanism for data to users of the C++ library. It is similar to Context::setFlag but has no getter. --- lang/cpp/src/data.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/cpp/src/data.h') diff --git a/lang/cpp/src/data.h b/lang/cpp/src/data.h index 9a5d5b0c..ea394804 100644 --- a/lang/cpp/src/data.h +++ b/lang/cpp/src/data.h @@ -122,6 +122,9 @@ public: /** Return a copy of the data as std::string. Sets seek pos to 0 */ std::string toString(); + /** See gpgme_data_set_flag */ + Error setFlag(const char *name, const char *value); + class Private; Private *impl() { -- cgit v1.2.3