diff options
author | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:10 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:10 +0000 |
commit | 058c49560ff702057bd8799c2d21b1fd70cb7134 (patch) | |
tree | a4a1d481f45cac006aa452aef2a451f16d03097a /src/include/gnunet_fs_service.h | |
parent | 63346db616d6478416ec5686746a7818acf81ed6 (diff) |
Implement and use GNUNET_FS_namespace_get_public_key_hash
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index d6b26d9279..1cb5028b38 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h @@ -2289,6 +2289,19 @@ GNUNET_FS_namespace_dup (struct GNUNET_FS_Namespace *ns); /** + * Get hash of the public key of a namespace. + * + * @param ns namespace + * @param id buffer to store the key in + * @return GNUNET_OK on success + * GNUNET_SYSERR on failure (contents of id remain intact) + */ +int +GNUNET_FS_namespace_get_public_key_hash (struct GNUNET_FS_Namespace *ns, + struct GNUNET_HashCode *id); + + +/** * Delete a namespace handle. Can be used for a clean shutdown (free * memory) or also to freeze the namespace to prevent further * insertions by anyone. |