[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10664 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10664 - gnunet/src/include |
Date: |
Fri, 19 Mar 2010 13:44:06 +0100 |
Author: nevans
Date: 2010-03-19 13:44:06 +0100 (Fri, 19 Mar 2010)
New Revision: 10664
Modified:
gnunet/src/include/gnunet_dht_service.h
Log:
api definition changes
Modified: gnunet/src/include/gnunet_dht_service.h
===================================================================
--- gnunet/src/include/gnunet_dht_service.h 2010-03-19 12:43:34 UTC (rev
10663)
+++ gnunet/src/include/gnunet_dht_service.h 2010-03-19 12:44:06 UTC (rev
10664)
@@ -52,7 +52,7 @@
/**
* Initialize the connection with the DHT service.
- *
+ *
* @param cfg configuration to use
* @param sched scheduler to use
* @param ht_len size of the internal hash table to use for
@@ -87,7 +87,7 @@
* @param exp desired expiration time for the value
* @param timeout when to abort with an error if we fail to get
* a confirmation for the PUT from the local DHT service
- * @param cont continuation to call when done;
+ * @param cont continuation to call when done;
* reason will be TIMEOUT on error,
* reason will be PREREQ_DONE on success
* @param cont_cls closure for cont
@@ -95,12 +95,12 @@
void
GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
const GNUNET_HashCode * key,
- uint32_t type,
- uint32_t size,
+ uint32_t type,
+ uint32_t size,
const char *data,
struct GNUNET_TIME_Absolute exp,
struct GNUNET_TIME_Relative timeout,
- GNUNET_DHT_MessageCallback cont,
+ GNUNET_SCHEDULER_Task cont,
void *cont_cls);
@@ -127,9 +127,9 @@
uint32_t type,
uint32_t size,
const void *data);
-
+
/**
* Perform an asynchronous GET operation on the DHT identified.
*
@@ -140,6 +140,9 @@
* @param key the key to look up
* @param iter function to call on each result
* @param iter_cls closure for iter
+ * @param cont continuation to call once message sent
+ * @param cont_cls closure for continuation
+ *
* @return handle to stop the async get, NULL on error
*/
struct GNUNET_DHT_RouteHandle *
@@ -148,7 +151,9 @@
uint32_t type,
const GNUNET_HashCode * key,
GNUNET_DHT_GetIterator iter,
- void *iter_cls);
+ void *iter_cls,
+ GNUNET_SCHEDULER_Task cont,
+ void *cont_cls);
/**
* Stop async DHT-get. Frees associated resources.
@@ -229,7 +234,7 @@
struct GNUNET_TIME_Relative timeout,
GNUNET_DHT_ReplyProcessor iter,
void *iter_cls,
- GNUNET_DHT_MessageCallback cont,
+ GNUNET_SCHEDULER_Task cont,
void *cont_cls);
void
@@ -244,5 +249,5 @@
#endif
-#endif
+#endif
/* gnunet_dht_service.h */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10664 - gnunet/src/include,
gnunet <=