From a100428ffd01733a28f4e66b61c958d9367209c2 Mon Sep 17 00:00:00 2001 From: LRN Date: Mon, 4 Mar 2013 01:20:48 +0000 Subject: Implement GNUNET_FS_namespace_insert_advertisement_into_metadata --- src/include/gnunet_fs_service.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/include/gnunet_fs_service.h') diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index c4cec81cd..efe2cd004 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h @@ -2218,6 +2218,21 @@ GNUNET_FS_namespace_advertise (struct GNUNET_FS_Handle *h, void *cont_cls); +/** + * Create an SKS uri that points to the root entry of the namespace, + * then insert that SKS uri into metadata. + * + * @param ns handle for the namespace that should be advertised + * @param meta meta-data into which namespace advertisement should be inserted + * @param rootEntry name of the root of the namespace (use NULL to use default) + * @return GNUNET_OK on success, GNUNET_SYSERR on error + */ +int +GNUNET_FS_namespace_insert_advertisement_into_metadata ( + struct GNUNET_FS_Namespace *ns, struct GNUNET_CONTAINER_MetaData *meta, + const char *rootEntry); + + /** * Abort the namespace advertisement operation. * -- cgit v1.2.3