cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob a580dc13a0f9760faa9517438d98de8d10326f28 558 bytes (raw)
$ git show v1.7.1:digest.h	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
/*
 * Copyright (C) 2012-2018 all contributors <cmogstored-public@bogomips.org>
 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 */
enum mog_digest_next {
	MOG_DIGEST_CONTINUE = 0,
	MOG_DIGEST_YIELD,
	MOG_DIGEST_EOF,
	MOG_DIGEST_ERROR
};

/* XXX gc_hash_handle is a typedef which hides a pointer, ugh... */
void mog_digest_init(struct mog_digest *, enum Gc_hash);
enum mog_digest_next mog_digest_read(struct mog_digest *, int fd);
void mog_digest_hex(struct mog_digest *, char *buf, size_t len);
void mog_digest_destroy(struct mog_digest *);

git clone https://yhbt.net/cmogstored.git