aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tofu.h
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tofu.h')
-rw-r--r--g10/tofu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/tofu.h b/g10/tofu.h
index adf87abe6..2d23e86bc 100644
--- a/g10/tofu.h
+++ b/g10/tofu.h
@@ -106,4 +106,10 @@ gpg_error_t tofu_set_policy_by_keyid (u32 *keyid, enum tofu_policy policy);
gpg_error_t tofu_get_policy (PKT_public_key *pk, PKT_user_id *user_id,
enum tofu_policy *policy);
+/* When doing a lot of DB activities (in particular, when listing
+ keys), this causes the DB to enter batch mode, which can
+ significantly speed up operations. */
+void tofu_begin_batch_update (void);
+void tofu_end_batch_update (void);
+
#endif /*G10_TOFU_H*/