changeset 6261:016c25ae2915

renamed OrthancPluginAuditLog() as OrthancPluginEmitAuditLog()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 10 Aug 2025 15:40:12 +0200
parents 84b8c79850ec
children dbfcecfb5f60
files OrthancServer/Plugins/Engine/OrthancPlugins.cpp OrthancServer/Plugins/Engine/OrthancPlugins.h OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h
diffstat 3 files changed, 11 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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<const _OrthancPluginAuditLog*>(parameters);
-
-        ApplyAuditLog(p);
+      case _OrthancPluginService_EmitAuditLog:
+      {
+        const _OrthancPluginEmitAuditLog& p = *reinterpret_cast<const _OrthancPluginEmitAuditLog*>(parameters);
+        ApplyEmitAuditLog(p);
         return true;
       }
 
--- 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);
--- 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);
   }