static void
env_delete_notify (void *cls,
const GNUNET_HashCode *key,
- uint32_t size)
+ size_t size)
{
struct GNUNET_DATACACHE_Handle * h = cls;
GNUNET_assert (h->utilization >= size);
GNUNET_DATACACHE_destroy (ret);
return NULL;
}
- GNUNET_assert (ret->api->get != NULL);
return ret;
}
int
GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
const GNUNET_HashCode * key,
- uint32_t size,
+ size_t size,
const char *data,
enum GNUNET_BLOCK_Type type,
struct GNUNET_TIME_Absolute discard_time)
{
uint32_t used;
- GNUNET_assert (h->api->get != NULL);
used = h->api->put (h->api->cls,
key,
size,
GNUNET_DATACACHE_Iterator iter,
void *iter_cls)
{
- GNUNET_assert (h->api->get != NULL);
GNUNET_STATISTICS_update (h->stats,
gettext_noop ("# requests received"),
1,
GNUNET_NO);
return 0; /* can not be present */
}
- GNUNET_assert (h->api->get != NULL);
return h->api->get (h->api->cls,
key,
type,