Mercurial > hg > orthanc
diff Plugins/Include/orthanc/OrthancCPlugin.h @ 1627:da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Sep 2015 16:32:29 +0200 |
parents | c40fe92a68e7 |
children | 77c4cc4def0f |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Fri Sep 18 14:28:47 2015 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Fri Sep 18 16:32:29 2015 +0200 @@ -663,7 +663,7 @@ * @brief Signature of a callback function that is triggered when Orthanc receives a DICOM instance. * @ingroup Callbacks **/ - typedef int32_t (*OrthancPluginOnStoredInstanceCallback) ( + typedef OrthancPluginErrorCode (*OrthancPluginOnStoredInstanceCallback) ( OrthancPluginDicomInstance* instance, const char* instanceId); @@ -673,7 +673,7 @@ * @brief Signature of a callback function that is triggered when a change happens to some DICOM resource. * @ingroup Callbacks **/ - typedef int32_t (*OrthancPluginOnChangeCallback) ( + typedef OrthancPluginErrorCode (*OrthancPluginOnChangeCallback) ( OrthancPluginChangeType changeType, OrthancPluginResourceType resourceType, const char* resourceId); @@ -699,7 +699,7 @@ * @return 0 if success, other value if error. * @ingroup Callbacks **/ - typedef int32_t (*OrthancPluginStorageCreate) ( + typedef OrthancPluginErrorCode (*OrthancPluginStorageCreate) ( const char* uuid, const void* content, int64_t size, @@ -719,7 +719,7 @@ * @return 0 if success, other value if error. * @ingroup Callbacks **/ - typedef int32_t (*OrthancPluginStorageRead) ( + typedef OrthancPluginErrorCode (*OrthancPluginStorageRead) ( void** content, int64_t* size, const char* uuid, @@ -737,7 +737,7 @@ * @return 0 if success, other value if error. * @ingroup Callbacks **/ - typedef int32_t (*OrthancPluginStorageRemove) ( + typedef OrthancPluginErrorCode (*OrthancPluginStorageRemove) ( const char* uuid, OrthancPluginContentType type);