From sqlite3.h (3.0.7):
/* ** This routine identifies a callback function that is invoked ** whenever an attempt is made to open a database table that is ** currently locked by another process or thread... The ** second argument is the name of the locked table and the third ** argument is the number of times the table has been busy. If the ** busy callback returns 0, then sqlite3_exec() immediately returns ** SQLITE_BUSY. If the callback returns non-zero, then sqlite3_exec() ** tries to open the table again and the cycle repeats. **
int sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*);
Documentation and function prototype are different, what is the right prototype for the sqlite3_busy_handler callback routine?
It is with 2 or 3 parameters? It seems to me that the name of the locked table is missed or the documentation is wrong...
Thanks a lot. Marco Bambini