# HG changeset patch # User Sebastien Jodogne # Date 1754833212 -7200 # Node ID 016c25ae291542d484423279144e5942c7b212f2 # Parent 84b8c79850ec899be39f82e22441266045c6b834 renamed OrthancPluginAuditLog() as OrthancPluginEmitAuditLog() diff -r 84b8c79850ec -r 016c25ae2915 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Sun Aug 10 15:27:29 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Sun Aug 10 15:40:12 2025 +0200 @@ -4783,7 +4783,7 @@ } } - void OrthancPlugins::ApplyAuditLog(const _OrthancPluginAuditLog& parameters) + void OrthancPlugins::ApplyEmitAuditLog(const _OrthancPluginEmitAuditLog& parameters) { PImpl::ServerContextReference lock(*pimpl_); @@ -5931,11 +5931,10 @@ return true; } - case _OrthancPluginService_AuditLog: - { - const _OrthancPluginAuditLog& p = *reinterpret_cast(parameters); - - ApplyAuditLog(p); + case _OrthancPluginService_EmitAuditLog: + { + const _OrthancPluginEmitAuditLog& p = *reinterpret_cast(parameters); + ApplyEmitAuditLog(p); return true; } diff -r 84b8c79850ec -r 016c25ae2915 OrthancServer/Plugins/Engine/OrthancPlugins.h --- a/OrthancServer/Plugins/Engine/OrthancPlugins.h Sun Aug 10 15:27:29 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.h Sun Aug 10 15:40:12 2025 +0200 @@ -251,7 +251,7 @@ void ApplySetStableStatus(const _OrthancPluginSetStableStatus& parameters); - void ApplyAuditLog(const _OrthancPluginAuditLog& parameters); + void ApplyEmitAuditLog(const _OrthancPluginEmitAuditLog& parameters); void ComputeHash(_OrthancPluginService service, const void* parameters); diff -r 84b8c79850ec -r 016c25ae2915 OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h --- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Sun Aug 10 15:27:29 2025 +0200 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Sun Aug 10 15:40:12 2025 +0200 @@ -518,7 +518,7 @@ _OrthancPluginService_DequeueValue = 58, /* New in Orthanc 1.12.8 */ _OrthancPluginService_GetQueueSize = 59, /* New in Orthanc 1.12.8 */ _OrthancPluginService_SetStableStatus = 60, /* New in Orthanc 1.12.9 */ - _OrthancPluginService_AuditLog = 61, /* New in Orthanc 1.12.9 */ + _OrthancPluginService_EmitAuditLog = 61, /* New in Orthanc 1.12.9 */ /* Registration of callbacks */ _OrthancPluginService_RegisterRestCallback = 1000, @@ -10600,7 +10600,7 @@ const char* action; const void* logData; uint32_t logDataSize; - } _OrthancPluginAuditLog; + } _OrthancPluginEmitAuditLog; /** @@ -10626,7 +10626,7 @@ * @param logDataSize The size of the custom log data. **/ ORTHANC_PLUGIN_SINCE_SDK("1.12.9") - ORTHANC_PLUGIN_INLINE void OrthancPluginAuditLog( + ORTHANC_PLUGIN_INLINE void OrthancPluginEmitAuditLog( OrthancPluginContext* context, const char* sourcePlugin, const char* userId, @@ -10636,7 +10636,7 @@ const void* logData, uint32_t logDataSize) { - _OrthancPluginAuditLog m; + _OrthancPluginEmitAuditLog m; m.sourcePlugin = sourcePlugin; m.userId = userId; m.resourceType = resourceType; @@ -10644,7 +10644,7 @@ m.action = action; m.logData = logData; m.logDataSize = logDataSize; - context->InvokeService(context, _OrthancPluginService_AuditLog, &m); + context->InvokeService(context, _OrthancPluginService_EmitAuditLog, &m); }