From adc5442e0cbaec78f5c81fa672e3e14e4c928f59 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Jul 2012 07:04:06 +0000 Subject: dbchecker - initial version git-svn-id: http://svn.miranda-ng.org/main/trunk@1208 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/worker.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins/DbChecker/src/worker.cpp') diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp index 834a40f308..9fa3e7aa2b 100644 --- a/plugins/DbChecker/src/worker.cpp +++ b/plugins/DbChecker/src/worker.cpp @@ -20,14 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "dbchecker.h" void ProcessingDone(void); -int WorkInitialChecks(int firstTime); -int WorkModuleChain(int firstTime); -int WorkUser(int firstTime); -int WorkContactChain(int firstTime); -int WorkAggressive(int firstTime); -int WorkFinalTasks(int firstTime); - -DATABASELINK* dblink; void __cdecl WorkerThread(void *unused) { @@ -35,14 +27,12 @@ void __cdecl WorkerThread(void *unused) time_t ts = time(NULL); AddToStatus(STATUS_MESSAGE, TranslateT("Database worker thread activated")); - SetFilePointer(opts.hFile, 0, NULL, FILE_BEGIN); DWORD sp = 0; firstTime = 0; DBCHeckCallback callback; callback.cbSize = sizeof(callback); - callback.db = NULL; callback.spaceUsed = 1; callback.spaceProcessed = 0; callback.pfnAddLogMessage = AddToStatus; @@ -58,7 +48,7 @@ void __cdecl WorkerThread(void *unused) break; } - int ret = dblink->CheckDb(&callback, task, firstTime); + int ret = opts.dbChecker->CheckDb(&callback, task, firstTime); firstTime = 0; if (ret == ERROR_NO_MORE_ITEMS) { AddToStatus(STATUS_MESSAGE, TranslateT("Elapsed time: %d sec"), time(NULL)-ts); -- cgit v1.2.3