summaryrefslogtreecommitdiffstats
path: root/src/lib/istream-hash.h
blob: bd22201220bf904861e73976dbcf791cd454de51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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