* Get a single zero-anonymity value from the datastore.
*
* @param h handle to the datastore
- * @param offset offset of the result (mod #num-results); set to
+ * @param offset offset of the result (modulo num-results); set to
* a random 64-bit value initially; then increment by
* one each time; detect that all results have been found by uid
* being again the first uid ever returned.
* will only be called once.
*
* @param h handle to the datastore
- * @param offset offset of the result (mod #num-results); set to
+ * @param offset offset of the result (modulo num-results); set to
* a random 64-bit value initially; then increment by
* one each time; detect that all results have been found by uid
* being again the first uid ever returned.
union QueueContext qc;
GNUNET_assert (NULL != proc);
-#if DEBUG_DATASTORE
+##if DEBUG_DATASTORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Asked to look for data of type %u under key `%s'\n",
(unsigned int) type,
* expired items, re-schedule the "delete_expired" task.
*
* @param cls not used
- * @param next_cls closure to pass to the "next" function.
* @param key key for the content
* @param size number of bytes in data
* @param data content stored
* that deletes until we're happy with respect to our quota.
*
* @param cls closure
- * @param next_cls closure to pass to the "next" function.
* @param key key for the content
* @param size number of bytes in data
* @param data content stored
*
* @param client target of the message
* @param msg message to transmit, will be freed!
- * @param tc function to call afterwards
- * @param tc_cls closure for tc
*/
static void
transmit (struct GNUNET_SERVER_Client *client,
* to the client.
*
* @param cls closure, pointer to the client (of type GNUNET_SERVER_Client).
- * @param next_cls closure to use to ask for the next item
* @param key key for the content
* @param size number of bytes in data
* @param data content stored
* Get one of the results for a particular key in the datastore.
*
* @param cls closure
- * @param offset offset of the result (mod #num-results);
+ * @param offset offset of the result (modulo num-results);
* specific ordering does not matter for the offset
* @param key key to match, never NULL
* @param vhash hash of the value, maybe NULL (to
* there may be!
* @param type entries of which type are relevant?
* Use 0 for any type.
- * @param proc function to call on each matching value; however,
- * after the first call to "proc", the plugin must wait
- * until "NextRequest" was called before giving the processor
- * the next item; finally, the "proc" should be called once
- * once with a NULL value at the end ("next_cls" should be NULL
- * for that last call)
+ * @param proc function to call on the matching value,
+ * with NULL for if no value matches
* @param proc_cls closure for proc
*/
static void
* @param offset offset of the result
* @param type entries of which type should be considered?
* Use 0 for any type.
- * @param iter function to call on each matching value;
- * will be called once with a NULL value at the end
- * @param iter_cls closure for iter
+ * @param proc function to call on a matching value or NULL
+ * @param proc_cls closure for iter
*/
static void
mysql_plugin_get_zero_anonymity (void *cls,
*
* @param cls closure
* @param proc function to call the value (once only).
- * @param iter_cls closure for proc
+ * @param proc_cls closure for proc
*/
static void
mysql_plugin_get_replication (void *cls,
* @param proc function to call the value (once only).
* @param proc_cls closure for proc
* @param res result from exec
+ * @param line line number for error messages
*/
static void
process_result (struct Plugin *plugin,
* in the datastore.
*
* @param cls closure
+ * @param offset offset of the result (modulo num-results);
+ * specific ordering does not matter for the offset
* @param key maybe NULL (to match all entries)
* @param vhash hash of the value, maybe NULL (to
* match all values that have the right key).
* there may be!
* @param type entries of which type are relevant?
* Use 0 for any type.
- * @param iter function to call on each matching value;
- * will be called once with a NULL value at the end
- * @param iter_cls closure for iter
+ * @param proc function to call on the matching value;
+ * will be called once with a NULL if no value matches
+ * @param proc_cls closure for iter
*/
static void
postgres_plugin_get_key (void *cls,
* @param cls our "struct Plugin*"
* @param type entries of which type should be considered?
* Use 0 for any type.
- * @param iter function to call on each matching value;
- * will be called once with a NULL value at the end
- * @param iter_cls closure for iter
+ * @param proc function to call on the matching value;
+ * will be called with a NULL if no value matches
+ * @param proc_cls closure for proc
*/
static void
postgres_plugin_get_zero_anonymity (void *cls,
*
* @param cls closure
* @param proc function to call the value (once only).
- * @param proc_cls closure for iter
+ * @param proc_cls closure for proc
*/
static void
postgres_plugin_get_replication (void *cls,
/**
* Get a random item for expiration.
- * Call 'iter' with all values ZERO or NULL if the datastore is empty.
+ * Call 'proc' with all values ZERO or NULL if the datastore is empty.
*
* @param cls closure
* @param proc function to call the value (once only).
- * @param proc_cls closure for iter
+ * @param proc_cls closure for proc
*/
static void
postgres_plugin_get_expiration (void *cls,
* the given processor for the item.
*
* @param cls our plugin context
+ * @param offset offset of the result (modulo num-results);
+ * specific ordering does not matter for the offset
* @param type entries of which type should be considered?
* Use 0 for any type.
* @param proc function to call on each matching value;
* Get one of the results for a particular key in the datastore.
*
* @param cls closure
- * @param offset offset of the result (mod #num-results);
+ * @param offset offset of the result (modulo num-results);
* specific ordering does not matter for the offset
* @param key maybe NULL (to match all entries)
* @param vhash hash of the value, maybe NULL (to
* Call the given processor on an item with zero anonymity.
*
* @param cls our "struct Plugin*"
- * @param offset offset of the result (mod #num-results);
+ * @param offset offset of the result (modulo num-results);
* specific ordering does not matter for the offset
* @param type entries of which type should be considered?
* Use 0 for any type.