cpp: Add enum mapping for GPGME_AUDIT_LOG_DIAG
* src/context.cpp (to_auditlog_flags): Map DIAG value. * src/context.h (AuditLogFlags): Add it.
This commit is contained in:
parent
a2458806f8
commit
629afebe50
@ -1028,6 +1028,9 @@ unsigned int to_auditlog_flags(unsigned int flags)
|
|||||||
if (flags & Context::AuditLogWithHelp) {
|
if (flags & Context::AuditLogWithHelp) {
|
||||||
result |= GPGME_AUDITLOG_WITH_HELP;
|
result |= GPGME_AUDITLOG_WITH_HELP;
|
||||||
}
|
}
|
||||||
|
if (flags & Context::DiagnosticAuditLog) {
|
||||||
|
result |= GPGME_AUDITLOG_DIAG;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,7 +401,9 @@ public:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
enum AuditLogFlags {
|
enum AuditLogFlags {
|
||||||
|
DefaultAuditLog = 0,
|
||||||
HtmlAuditLog = 1,
|
HtmlAuditLog = 1,
|
||||||
|
DiagnosticAuditLog = 2,
|
||||||
AuditLogWithHelp = 128
|
AuditLogWithHelp = 128
|
||||||
};
|
};
|
||||||
GpgME::Error startGetAuditLog(Data &output, unsigned int flags = 0);
|
GpgME::Error startGetAuditLog(Data &output, unsigned int flags = 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user