view src/lib/ostream-hash.h @ 22553:7db517071db5

lib: Add multiplex stream support This allows having multiple channels of data in single stream.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 22 Aug 2017 10:14:22 +0300
parents 63edc752479d
children
line wrap: on
line source

#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