return nt_printing_init();
}
+/****************************************************************************
+ Shut down printing backend. Called once at shutdown to close the tdb.
+****************************************************************************/
+
+void printing_end(void)
+{
+ if (tdb) {
+ tdb_close(tdb);
+ tdb = NULL;
+ }
+}
+
/****************************************************************************
Useful function to generate a tdb key.
****************************************************************************/
}
/****************************************************************************
-remove a job structure from the database
+ Remove a job structure from the database.
****************************************************************************/
+
static void pjob_delete(int jobid)
{
int snum;
}
/****************************************************************************
-update the internal database from the system print queue for a queue
+ Update the internal database from the system print queue for a queue.
****************************************************************************/
static void print_queue_update(int snum)
}
/* make sure the database is up to date */
- if (print_cache_expired(snum)) print_queue_update(snum);
+ if (print_cache_expired(snum))
+ print_queue_update(snum);
/* Send a printer notify message */