[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: simplify logic
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: simplify logic |
Date: |
Thu, 10 May 2018 11:26:53 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new f3e122bcb simplify logic
f3e122bcb is described below
commit f3e122bcb96dde2d406a6005013d96e67a045cd3
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu May 10 11:26:50 2018 +0200
simplify logic
---
src/zonemaster/gnunet-service-zonemaster-monitor.c | 11 ++++-------
src/zonemaster/gnunet-service-zonemaster.c | 11 ++++-------
2 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/src/zonemaster/gnunet-service-zonemaster-monitor.c
b/src/zonemaster/gnunet-service-zonemaster-monitor.c
index a0c178511..46feb117f 100644
--- a/src/zonemaster/gnunet-service-zonemaster-monitor.c
+++ b/src/zonemaster/gnunet-service-zonemaster-monitor.c
@@ -235,8 +235,7 @@ convert_records_for_export (const struct
GNUNET_GNSRECORD_Data *rd,
* @param label label to store under
* @param rd_public public record data
* @param rd_public_count number of records in @a rd_public
- * @param cont function to call with PUT result
- * @param cont_cls closure for @a cont
+ * @param ma handle for the PUT operation
* @return DHT PUT handle, NULL on error
*/
static struct GNUNET_DHT_PutHandle *
@@ -244,8 +243,7 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey
*key,
const char *label,
const struct GNUNET_GNSRECORD_Data *rd_public,
unsigned int rd_public_count,
- GNUNET_SCHEDULER_TaskCallback cont,
- void *cont_cls)
+ struct DhtPutActivity *ma)
{
struct GNUNET_GNSRECORD_Block *block;
struct GNUNET_HashCode query;
@@ -296,8 +294,8 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey
*key,
block_size,
block,
expire,
- cont,
- cont_cls);
+ &dht_put_monitor_continuation,
+ ma);
GNUNET_free (block);
return ret;
}
@@ -350,7 +348,6 @@ handle_monitor_event (void *cls,
label,
rd,
rd_count,
- &dht_put_monitor_continuation,
ma);
if (NULL == ma->ph)
{
diff --git a/src/zonemaster/gnunet-service-zonemaster.c
b/src/zonemaster/gnunet-service-zonemaster.c
index 482d3a203..719a84107 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -578,8 +578,7 @@ convert_records_for_export (const struct
GNUNET_GNSRECORD_Data *rd,
* @param label label to store under
* @param rd_public public record data
* @param rd_public_count number of records in @a rd_public
- * @param cont function to call with PUT result
- * @param cont_cls closure for @a cont
+ * @param ma handle for the put operation
* @return DHT PUT handle, NULL on error
*/
static struct GNUNET_DHT_PutHandle *
@@ -587,8 +586,7 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey
*key,
const char *label,
const struct GNUNET_GNSRECORD_Data *rd_public,
unsigned int rd_public_count,
- GNUNET_SCHEDULER_TaskCallback cont,
- void *cont_cls)
+ struct DhtPutActivity *ma)
{
struct GNUNET_GNSRECORD_Block *block;
struct GNUNET_HashCode query;
@@ -640,8 +638,8 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey
*key,
block_size,
block,
expire,
- cont,
- cont_cls);
+ &dht_put_continuation,
+ ma);
GNUNET_free (block);
return ret;
}
@@ -759,7 +757,6 @@ put_gns_record (void *cls,
label,
rd_public,
rd_public_count,
- &dht_put_continuation,
ma);
put_cnt++;
if (0 == put_cnt % DELTA_INTERVAL)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: simplify logic,
gnunet <=