diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-27 07:04:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-27 07:04:06 +0000 |
commit | adc5442e0cbaec78f5c81fa672e3e14e4c928f59 (patch) | |
tree | 2090ab5a08c2c060b1db52c231b9d6ed608cf654 /plugins/DbChecker/src/worker.cpp | |
parent | 1718ecd06e6bb305385e5dea79c5649af6e9470a (diff) |
dbchecker - initial version
git-svn-id: http://svn.miranda-ng.org/main/trunk@1208 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src/worker.cpp')
-rw-r--r-- | plugins/DbChecker/src/worker.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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);
|