[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28451 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28451 - gnunet/src/fs |
Date: |
Thu, 8 Aug 2013 09:06:23 +0200 |
Author: grothoff
Date: 2013-08-08 09:06:22 +0200 (Thu, 08 Aug 2013)
New Revision: 28451
Modified:
gnunet/src/fs/fs_namespace.c
gnunet/src/fs/fs_pseudonym.c
Log:
-fixing comments, indentation
Modified: gnunet/src/fs/fs_namespace.c
===================================================================
--- gnunet/src/fs/fs_namespace.c 2013-08-08 05:56:51 UTC (rev 28450)
+++ gnunet/src/fs/fs_namespace.c 2013-08-08 07:06:22 UTC (rev 28451)
@@ -21,6 +21,7 @@
/**
* @file fs/fs_namespace.c
* @brief publishing to namespaces, and tracking updateable entries
+ * for our namespaces
* @author Christian Grothoff
*/
#include "platform.h"
Modified: gnunet/src/fs/fs_pseudonym.c
===================================================================
--- gnunet/src/fs/fs_pseudonym.c 2013-08-08 05:56:51 UTC (rev 28450)
+++ gnunet/src/fs/fs_pseudonym.c 2013-08-08 07:06:22 UTC (rev 28451)
@@ -19,7 +19,9 @@
*/
/**
* @file fs/fs_pseudonym.c
- * @brief pseudonym functions
+ * @brief pseudonym functions; these functions are about namespaces
+ * managed by other users; we might want to eliminate this
+ * entire API and instead manage pseudonyms only via GNS
* @author Christian Grothoff
*/
#include "platform.h"
@@ -124,9 +126,9 @@
*/
struct GNUNET_FS_Pseudonym_DiscoveryHandle *
GNUNET_FS_pseudonym_discovery_callback_register (const struct
- GNUNET_CONFIGURATION_Handle *cfg,
- GNUNET_FS_PseudonymIterator
iterator,
- void *iterator_cls)
+ GNUNET_CONFIGURATION_Handle
*cfg,
+ GNUNET_FS_PseudonymIterator
iterator,
+ void *iterator_cls)
{
struct GNUNET_FS_Pseudonym_DiscoveryHandle *dh;
@@ -393,7 +395,8 @@
{
idx = i;
if (sizeof (struct GNUNET_CRYPTO_EccPublicKey) !=
- GNUNET_DISK_file_write (fh, pseudonym, sizeof (struct
GNUNET_CRYPTO_EccPublicKey)))
+ GNUNET_DISK_file_write (fh, pseudonym,
+ sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "write", fn);
}
GNUNET_DISK_file_close (fh);
@@ -504,8 +507,8 @@
*/
int
GNUNET_FS_pseudonym_name_to_id (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *ns_uname,
- struct GNUNET_CRYPTO_EccPublicKey *pseudonym)
+ const char *ns_uname,
+ struct GNUNET_CRYPTO_EccPublicKey *pseudonym)
{
size_t slen;
uint64_t len;
@@ -549,7 +552,8 @@
return GNUNET_SYSERR;
}
if (sizeof (struct GNUNET_CRYPTO_EccPublicKey) !=
- GNUNET_DISK_file_read (fh, pseudonym, sizeof (struct
GNUNET_CRYPTO_EccPublicKey)))
+ GNUNET_DISK_file_read (fh, pseudonym,
+ sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
{
GNUNET_DISK_file_close (fh);
return GNUNET_SYSERR;
@@ -559,7 +563,6 @@
}
-
/**
* struct used to list the pseudonym
*/
@@ -654,8 +657,8 @@
*/
int
GNUNET_FS_pseudonym_list_all (const struct GNUNET_CONFIGURATION_Handle *cfg,
- GNUNET_FS_PseudonymIterator iterator,
- void *iterator_cls)
+ GNUNET_FS_PseudonymIterator iterator,
+ void *iterator_cls)
{
struct ListPseudonymClosure cls;
char *fn;
@@ -683,8 +686,8 @@
*/
int
GNUNET_FS_pseudonym_rank (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const struct GNUNET_CRYPTO_EccPublicKey *pseudonym,
- int32_t delta)
+ const struct GNUNET_CRYPTO_EccPublicKey *pseudonym,
+ int32_t delta)
{
struct GNUNET_CONTAINER_MetaData *meta;
int ret;
@@ -750,5 +753,4 @@
}
-
-/* end of pseudonym.c */
+/* end of fs_pseudonym.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28451 - gnunet/src/fs,
gnunet <=