aboutsummaryrefslogtreecommitdiff
path: root/hal_internal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-27 12:55:42 -0400
committerRob Austein <sra@hactrn.net>2016-09-27 12:55:42 -0400
commit5e127578f0c68ee9baa67d867d75c6a714bd1176 (patch)
tree404541d5ed9638f149519a9b5d77d40358318f65 /hal_internal.h
parent84aaee3b36c11950e194c0918afc04331253abe0 (diff)
Add hal_ks_index_replace().
Diffstat (limited to 'hal_internal.h')
-rw-r--r--hal_internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h
index 2318748..ef0d763 100644
--- a/hal_internal.h
+++ b/hal_internal.h
@@ -646,6 +646,16 @@ extern hal_error_t hal_ks_index_delete(hal_ks_index_t *ksi,
unsigned *blockno);
/*
+ * Replace a key block with a new one, return new block number.
+ * Name of block does not change. This is an optimization of
+ * a delete immediately followed by an add for the same name.
+ */
+
+extern hal_error_t hal_ks_index_replace(hal_ks_index_t *ksi,
+ const hal_uuid_t * const name,
+ unsigned *blockno);
+
+/*
* RPC lowest-level send and receive routines. These are blocking, and
* transport-specific (sockets, USB).
*/