summaryrefslogtreecommitdiff
path: root/include/m_db_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_db_int.h')
-rw-r--r--include/m_db_int.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 7a4e3759e4..aadc882b84 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -69,6 +69,15 @@ interface MIDatabase
///////////////////////////////////////////////////////////////////////////////
// Each database plugin should register itself using this structure
+struct DBCHeckCallback
+{
+ int cbSize;
+ MIDatabase* db;
+ DWORD spaceProcessed, spaceUsed;
+
+ void (*pfnAddLogMessage)(int type, const TCHAR* ptszFormat, ...);
+};
+
struct DATABASELINK
{
int cbSize;
@@ -108,6 +117,13 @@ struct DATABASELINK
Note: Unload() might be called even if Load(void) was never called, wasLoaded is set to 1 if Load(void) was ever called.
*/
int (*Unload)(MIDatabase*);
+
+ /*
+ Affect: performs one of the database check steps.
+ Returns: If there're no more steps to execute, returns ERROR_NO_MORE_ITEMS, or ERROR_SUCCESS, or the error code.
+ Warning: this code is never executed in the main thread.
+ */
+ int (*CheckDb)(DBCHeckCallback *callback, int phase, int firstTime);
};
///////////////////////////////////////////////////////////////////////////////