[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36130 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36130 - gnunet/src/fs |
Date: |
Mon, 27 Jul 2015 14:40:59 +0200 |
Author: grothoff
Date: 2015-07-27 14:40:59 +0200 (Mon, 27 Jul 2015)
New Revision: 36130
Modified:
gnunet/src/fs/fs_publish_ksk.c
gnunet/src/fs/fs_publish_ublock.c
Log:
-doxygen, indentation
Modified: gnunet/src/fs/fs_publish_ksk.c
===================================================================
--- gnunet/src/fs/fs_publish_ksk.c 2015-07-27 09:17:19 UTC (rev 36129)
+++ gnunet/src/fs/fs_publish_ksk.c 2015-07-27 12:40:59 UTC (rev 36130)
@@ -105,11 +105,11 @@
/**
- * Continuation of "GNUNET_FS_publish_ksk" that performs
+ * Continuation of #GNUNET_FS_publish_ksk() that performs
* the actual publishing operation (iterating over all
* of the keywords).
*
- * @param cls closure of type "struct PublishKskContext*"
+ * @param cls closure of type `struct PublishKskContext *`
* @param tc unused
*/
static void
@@ -121,7 +121,7 @@
* Function called by the datastore API with
* the result from the PUT request.
*
- * @param cls closure of type "struct GNUNET_FS_PublishKskContext*"
+ * @param cls closure of type `struct GNUNET_FS_PublishKskContext *`
* @param msg error message (or NULL)
*/
static void
@@ -144,14 +144,15 @@
/**
- * Continuation of "GNUNET_FS_publish_ksk" that performs the actual
+ * Continuation of #GNUNET_FS_publish_ksk() that performs the actual
* publishing operation (iterating over all of the keywords).
*
- * @param cls closure of type "struct GNUNET_FS_PublishKskContext*"
+ * @param cls closure of type `struct GNUNET_FS_PublishKskContext *`
* @param tc unused
*/
static void
-publish_ksk_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+publish_ksk_cont (void *cls,
+ const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct GNUNET_FS_PublishKskContext *pkc = cls;
const char *keyword;
@@ -160,8 +161,10 @@
if ( (pkc->i == pkc->ksk_uri->data.ksk.keywordCount) ||
(NULL == pkc->dsh) )
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "KSK PUT operation complete\n");
- pkc->cont (pkc->cont_cls, pkc->ksk_uri, NULL);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "KSK PUT operation complete\n");
+ pkc->cont (pkc->cont_cls, pkc->ksk_uri,
+ NULL);
GNUNET_FS_publish_ksk_cancel (pkc);
return;
}
@@ -216,7 +219,9 @@
pkc->dsh = GNUNET_DATASTORE_connect (h->cfg);
if (NULL == pkc->dsh)
{
- cont (cont_cls, NULL, _("Could not connect to datastore."));
+ cont (cont_cls,
+ NULL,
+ _("Could not connect to datastore."));
GNUNET_free (pkc);
return NULL;
}
Modified: gnunet/src/fs/fs_publish_ublock.c
===================================================================
--- gnunet/src/fs/fs_publish_ublock.c 2015-07-27 09:17:19 UTC (rev 36129)
+++ gnunet/src/fs/fs_publish_ublock.c 2015-07-27 12:40:59 UTC (rev 36130)
@@ -121,9 +121,9 @@
* Continuation of #GNUNET_FS_publish_ublock_().
*
* @param cls closure of type "struct GNUNET_FS_PublishUblockContext*"
- * @param success GNUNET_SYSERR on failure (including timeout/queue drop)
- * GNUNET_NO if content was already there
- * GNUNET_YES (or other positive value) on success
+ * @param success #GNUNET_SYSERR on failure (including timeout/queue drop)
+ * #GNUNET_NO if content was already there
+ * #GNUNET_YES (or other positive value) on success
* @param min_expiration minimum expiration time required for 0-priority
content to be stored
* by the datacache at this time, zero for unknown, forever if
we have no
* space for 0-priority content
@@ -285,7 +285,9 @@
if (NULL != dsh)
{
uc->qre =
- GNUNET_DATASTORE_put (dsh, 0, &query,
+ GNUNET_DATASTORE_put (dsh,
+ 0,
+ &query,
ulen + slen + mdsize + sizeof (struct UBlock),
ub_enc,
GNUNET_BLOCK_TYPE_FS_UBLOCK,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36130 - gnunet/src/fs,
gnunet <=