[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12495 - in gnunet/src: fs include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12495 - in gnunet/src: fs include |
Date: |
Sat, 7 Aug 2010 23:45:14 +0200 |
Author: grothoff
Date: 2010-08-07 23:45:14 +0200 (Sat, 07 Aug 2010)
New Revision: 12495
Modified:
gnunet/src/fs/fs_uri.c
gnunet/src/include/gnunet_fs_service.h
gnunet/src/include/gnunet_pseudonym_lib.h
Log:
adding missing API call
Modified: gnunet/src/fs/fs_uri.c
===================================================================
--- gnunet/src/fs/fs_uri.c 2010-08-07 21:12:46 UTC (rev 12494)
+++ gnunet/src/fs/fs_uri.c 2010-08-07 21:45:14 UTC (rev 12495)
@@ -910,6 +910,27 @@
/**
+ * Create an SKS URI from a namespace ID and an identifier.
+ *
+ * @param nsid namespace ID
+ * @param id identifier
+ * @return an FS URI for the given namespace and identifier
+ */
+struct GNUNET_FS_Uri *
+GNUNET_FS_uri_sks_create_from_nsid (GNUNET_HashCode *nsid,
+ const char *id)
+{
+ struct GNUNET_FS_Uri *ns_uri;
+
+ ns_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri));
+ ns_uri->type = sks;
+ ns_uri->data.sks.namespace = *nsid;
+ ns_uri->data.sks.identifier = GNUNET_strdup (id);
+ return ns_uri;
+}
+
+
+/**
* Canonicalize a keyword.
*
* @param in input string (the keyword)
@@ -1151,6 +1172,7 @@
if (keywords == NULL)
{
+ *emsg = GNUNET_strdup (_("No keywords specified!\n"));
GNUNET_break (0);
return NULL;
}
Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h 2010-08-07 21:12:46 UTC (rev
12494)
+++ gnunet/src/include/gnunet_fs_service.h 2010-08-07 21:45:14 UTC (rev
12495)
@@ -328,6 +328,18 @@
/**
+ * Create an SKS URI from a namespace ID and an identifier.
+ *
+ * @param nsid namespace ID
+ * @param id identifier
+ * @return an FS URI for the given namespace and identifier
+ */
+struct GNUNET_FS_Uri *
+GNUNET_FS_uri_sks_create_from_nsid (GNUNET_HashCode *nsid,
+ const char *id);
+
+
+/**
* Get the ID of a namespace from the given
* namespace URI.
*
Modified: gnunet/src/include/gnunet_pseudonym_lib.h
===================================================================
--- gnunet/src/include/gnunet_pseudonym_lib.h 2010-08-07 21:12:46 UTC (rev
12494)
+++ gnunet/src/include/gnunet_pseudonym_lib.h 2010-08-07 21:45:14 UTC (rev
12495)
@@ -42,6 +42,9 @@
/**
* Iterator over all known pseudonyms.
*
+ * @param cls closure
+ * @param pseudonym hash code of public key of pseudonym
+ * @param md meta data known about the pseudonym
* @param rating the local rating of the pseudonym
* @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12495 - in gnunet/src: fs include,
gnunet <=