Lines Matching refs:bk
783 hbk *bk; in doclose() local
854 while ((bk = h->backups)) { in doclose()
855 h->backups = bk->next; in doclose()
856 bk->next = 0; in doclose()
857 bk->h = 0; in doclose()
858 if (bk->bkup) { in doclose()
859 sqlite3_backup_finish(bk->bkup); in doclose()
861 bk->bkup = 0; in doclose()
4641 hbk *bk; in Java_SQLite_Database__1backup() local
4697 bk = malloc(sizeof (hbk)); in Java_SQLite_Database__1backup()
4698 if (!bk) { in Java_SQLite_Database__1backup()
4703 bk->next = hsrc->backups; in Java_SQLite_Database__1backup()
4704 hsrc->backups = bk; in Java_SQLite_Database__1backup()
4705 bk->bkup = bkup; in Java_SQLite_Database__1backup()
4706 bk->h = hsrc; in Java_SQLite_Database__1backup()
4708 vv.l = (jobject) bk; in Java_SQLite_Database__1backup()
4720 hbk *bk = gethbk(env, obj); in Java_SQLite_Backup__1finalize() local
4724 if (bk) { in Java_SQLite_Backup__1finalize()
4725 if (bk->h) { in Java_SQLite_Backup__1finalize()
4726 handle *h = bk->h; in Java_SQLite_Backup__1finalize()
4732 if (bkc == bk) { in Java_SQLite_Backup__1finalize()
4740 if (bk->bkup) { in Java_SQLite_Backup__1finalize()
4741 ret = sqlite3_backup_finish(bk->bkup); in Java_SQLite_Backup__1finalize()
4742 if (ret != SQLITE_OK && bk->h) { in Java_SQLite_Backup__1finalize()
4743 err = (char *) sqlite3_errmsg((sqlite3 *) bk->h->sqlite); in Java_SQLite_Backup__1finalize()
4746 bk->bkup = 0; in Java_SQLite_Backup__1finalize()
4747 free(bk); in Java_SQLite_Backup__1finalize()
4761 hbk *bk = gethbk(env, obj); in Java_SQLite_Backup__1step() local
4764 if (bk) { in Java_SQLite_Backup__1step()
4765 if (bk->bkup) { in Java_SQLite_Backup__1step()
4766 ret = sqlite3_backup_step(bk->bkup, (int) n); in Java_SQLite_Backup__1step()
4795 hbk *bk = gethbk(env, obj); in Java_SQLite_Backup__1remaining() local
4797 if (bk) { in Java_SQLite_Backup__1remaining()
4798 if (bk->bkup) { in Java_SQLite_Backup__1remaining()
4799 result = sqlite3_backup_remaining(bk->bkup); in Java_SQLite_Backup__1remaining()
4813 hbk *bk = gethbk(env, obj); in Java_SQLite_Backup__1pagecount() local
4815 if (bk) { in Java_SQLite_Backup__1pagecount()
4816 if (bk->bkup) { in Java_SQLite_Backup__1pagecount()
4817 result = sqlite3_backup_pagecount(bk->bkup); in Java_SQLite_Backup__1pagecount()