Implement and use GNUNET_FS_namespace_get_public_key_hash
[oweals/gnunet.git] / src / include / gnunet_fs_service.h
index d6b26d92794924c275f6b9dd5ba4189cbfef9e59..1cb5028b388d4cba6eb83eb9572c976fbcde19e3 100644 (file)
@@ -2288,6 +2288,19 @@ struct GNUNET_FS_Namespace *
 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