<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/close.c">
<Name>LQT_SyncDatabase</Name>
<Class>Database/Database
<Purpose>
<P>Syncs the current lq-text database; that is, writes any pending data
blocks to disk, and closes and deletes any temporary files.
You could think of this function as closing the database and then
opening it again, except that it doesn't actually do that.</P>
<P>Any actions that have been registered with LQT_AddActionOnClose
with the LQT_ON_SYNC flag are performed, including
the ones that liblqtext has registered internally.</P>
<P>It is not necessary to call LQT_SyncDatabase before closing a
database, as LQT_CloseDatabase does this.
<Returns>
zero.
<SeeAlso>
LQT_AddActionOnClose
LQT_OpenDatabase
LQT_CloseDatabase
</Function>
<Decl>
API int
LQT_SyncDatabase(theDatabase)
    t_LQTEXT_Database *theDatabase;
</Decl>
</Entry>
