diff OrthancServer/ServerIndex.cpp @ 237:16a4ac70bd8a

last change and export
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2012 15:45:15 +0100
parents c11273198cef
children e4148b0ab1d0
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Fri Nov 30 15:09:16 2012 +0100
+++ b/OrthancServer/ServerIndex.cpp	Fri Nov 30 15:45:15 2012 +0100
@@ -617,9 +617,14 @@
                                unsigned int maxResults)
   {
     boost::mutex::scoped_lock lock(mutex_);
+    db_->GetChanges(target, since, maxResults);
+    return true;
+  }
 
-    db_->GetChanges(target, since, maxResults);
-
+  bool ServerIndex::GetLastChange(Json::Value& target)
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    db_->GetLastChange(target);
     return true;
   }
 
@@ -703,4 +708,11 @@
     db_->GetExportedResources(target, since, maxResults);
     return true;
   }
+
+  bool ServerIndex::GetLastExportedResource(Json::Value& target)
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    db_->GetLastExportedResource(target);
+    return true;
+  }
 }