This helper is also called from SQLite. It must not enter SQLite itself. */
| 1569 | |
| 1570 | /* This helper is also called from SQLite. It must not enter SQLite itself. */ |
| 1571 | static int store_scope_poll(cbm_store_read_scope_t *scope) { |
| 1572 | if (scope->status == CBM_STORE_OK && scope->cancel && scope->cancel(scope->context)) { |
| 1573 | scope->status = CBM_STORE_CANCELLED; |
| 1574 | } |
| 1575 | return scope->status; |
| 1576 | } |
| 1577 | |
| 1578 | static int store_scope_progress(void *context) { |
| 1579 | return store_scope_poll((cbm_store_read_scope_t *)context) != CBM_STORE_OK; |
no test coverage detected