summaryrefslogtreecommitdiffstats
path: root/src/lib/ostream-hash.h
blob: 7fb4b6d695241a302d17f5a7bca657baac7ca666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef OSTREAM_HASH_H
#define OSTREAM_HASH_H

struct hash_method;

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

#endif