added backwards compat layer to old mysql module

This commit is contained in:
David Anderson
2006-04-24 10:27:25 +00:00
parent 768880fa92
commit 1c5b8670d9
9 changed files with 556 additions and 8 deletions

View File

@ -78,3 +78,30 @@ bool FreeHandle(unsigned int num)
return true;
}
void FreeAllHandles(HandleType type)
{
QHandle *q;
for (size_t i = 0; i < g_Handles.size(); i++)
{
q = g_Handles[i];
if (q && !q->isfree && q->type == type)
{
FreeHandle((unsigned int)i);
}
}
}
void FreeHandleTable()
{
QHandle *q;
for (size_t i = 0; i < g_Handles.size(); i++)
{
q = g_Handles[i];
if (q && !q->isfree)
FreeHandle((unsigned int)i);
}
g_Handles.clear();
while (!g_FreeHandles.empty())
g_FreeHandles.pop();
}