# HG changeset patch # User Sebastien Jodogne # Date 1530718315 -7200 # Node ID 5fbfe55e99788f950564bc516116c9df1985bbb4 # Parent e583478e0c6cd906e0cfa7afc58da7dabf881c49 updated comments diff -r e583478e0c6c -r 5fbfe55e9978 Plugins/Include/orthanc/OrthancCDatabasePlugin.h --- a/Plugins/Include/orthanc/OrthancCDatabasePlugin.h Tue Jul 03 15:59:17 2018 +0200 +++ b/Plugins/Include/orthanc/OrthancCDatabasePlugin.h Wed Jul 04 17:31:55 2018 +0200 @@ -707,13 +707,8 @@ } _OrthancPluginRegisterDatabaseBackend; /** - * Register a custom database back-end. + * Register a custom database back-end (for legacy plugins). * - * Instead of manually filling the OrthancPluginDatabaseBackend - * structure, you should instead implement a concrete C++ class - * deriving from ::OrthancPlugins::IDatabaseBackend, and register it - * using ::OrthancPlugins::DatabaseBackendAdapter::Register(). - * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param backend The callbacks of the custom database engine. * @param payload Pointer containing private information for the database engine. @@ -766,11 +761,6 @@ /** * Register a custom database back-end. * - * Instead of manually filling the OrthancPluginDatabaseBackendV2 - * structure, you should instead implement a concrete C++ class - * deriving from ::OrthancPlugins::IDatabaseBackend, and register it - * using ::OrthancPlugins::DatabaseBackendAdapter::Register(). - * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param backend The callbacks of the custom database engine. * @param payload Pointer containing private information for the database engine. diff -r e583478e0c6c -r 5fbfe55e9978 Plugins/Include/orthanc/OrthancCPlugin.h --- a/Plugins/Include/orthanc/OrthancCPlugin.h Tue Jul 03 15:59:17 2018 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Wed Jul 04 17:31:55 2018 +0200 @@ -2930,7 +2930,6 @@ * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @return The version. * @ingroup Callbacks - * @deprecated Please instead use IDatabaseBackend::UpgradeDatabase() **/ ORTHANC_PLUGIN_INLINE uint32_t OrthancPluginGetExpectedDatabaseVersion( OrthancPluginContext* context) @@ -4302,9 +4301,7 @@ * This function requests the Orthanc core to reconstruct the main * DICOM tags of all the resources of the given type. This function * can only be used as a part of the upgrade of a custom database - * back-end - * (cf. OrthancPlugins::IDatabaseBackend::UpgradeDatabase). A - * database transaction will be automatically setup. + * back-end. A database transaction will be automatically setup. * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param storageArea The storage area.