X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/21dfa64dca27927f112896fd6f625284df858e7d..6a7dce9165a4a707382e49877334353618fcad9a:/key-data.h diff --git a/key-data.h b/key-data.h index e216bc0..e37c381 100644 --- a/key-data.h +++ b/key-data.h @@ -414,6 +414,22 @@ extern int key_do(key_data */*k*/, const key_filter */*kf*/, dstr */*d*/, dstr */*d*/, void */*p*/), void */*p*/); +/* --- @key_copydata@ --- * + * + * Arguments: @key_data *k@ = key data to copy + * @const key_filter *kf@ = pointer to filter block + * + * Returns: Pointer to a copy of the data, or null if the root subkey + * didn't match the filter. + * + * Use: Copies a chunk of key data. Subkeys, whether they're + * structured or leaves, which don't match the filter aren't + * copied. The copy may or may not have structure in common + * with the original. + */ + +extern key_data *key_copydata(key_data */*k*/, const key_filter */*kf*/); + /*----- Textual encoding --------------------------------------------------*/ /* --- @key_read@ --- *