cpp: Add enum mapping for GPGME_AUDIT_LOG_DIAG
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 5 Jul 2018 08:22:13 +0000 (10:22 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 5 Jul 2018 09:29:36 +0000 (11:29 +0200)
* src/context.cpp (to_auditlog_flags): Map DIAG value.
* src/context.h (AuditLogFlags): Add it.

lang/cpp/src/context.cpp
lang/cpp/src/context.h

index aab22cd..1e4e549 100644 (file)
@@ -1028,6 +1028,9 @@ unsigned int to_auditlog_flags(unsigned int flags)
     if (flags & Context::AuditLogWithHelp) {
         result |= GPGME_AUDITLOG_WITH_HELP;
     }
+    if (flags & Context::DiagnosticAuditLog) {
+        result |= GPGME_AUDITLOG_DIAG;
+    }
     return result;
 }
 
index a14625e..6e27daa 100644 (file)
@@ -401,7 +401,9 @@ public:
     //
     //
     enum AuditLogFlags {
+        DefaultAuditLog = 0,
         HtmlAuditLog = 1,
+        DiagnosticAuditLog = 2,
         AuditLogWithHelp = 128
     };
     GpgME::Error startGetAuditLog(Data &output, unsigned int flags = 0);