annotate src/lib/ostream-hash.h @ 22664:fea53c2725c0

director: Fix director_max_parallel_moves/kicks type Should be uint, not time.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 09 Nov 2017 12:24:16 +0200
parents 63edc752479d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16002
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 #ifndef OSTREAM_HASH_H
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2 #define OSTREAM_HASH_H
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3
16719
63edc752479d Minor code cleanup.
Timo Sirainen <tss@iki.fi>
parents: 16002
diff changeset
4 struct hash_method;
63edc752479d Minor code cleanup.
Timo Sirainen <tss@iki.fi>
parents: 16002
diff changeset
5
16002
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6 /* hash_context must be allocated and initialized by caller. This ostream will
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 simply call method->loop() for all the data going through the ostream. */
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 struct ostream *
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 o_stream_create_hash(struct ostream *output, const struct hash_method *method,
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 void *hash_context);
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11
7a08461c5559 Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12 #endif