view src/lib/istream-hash.h @ 16720:f73c388ad360

liblib: Added istream-hash, similar to ostream-hash.
author Timo Sirainen <tss@iki.fi>
date Mon, 09 Sep 2013 04:34:58 +0300
parents
children
line wrap: on
line source

#ifndef ISTREAM_HASH_H
#define ISTREAM_HASH_H

struct hash_method;

/* hash_context must be allocated and initialized by caller. This istream will
   simply call method->loop() for all the data going through the istream. */
struct istream *
i_stream_create_hash(struct istream *input, const struct hash_method *method,
		     void *hash_context);

#endif