diff options
author | Dacav <dacav@fastmail.com> | 2020-08-29 15:21:04 +0200 |
---|---|---|
committer | Dacav <dacav@fastmail.com> | 2020-08-29 15:21:04 +0200 |
commit | 982fee63848b4efbdbfbb74cfc04f01990781cdc (patch) | |
tree | 854806ae7dbf4f9c1e3e68bb0e5717e75769d539 /filehash.h | |
parent | 32dc8587ab24d5832fb3826a631c8c50524a9a25 (diff) | |
download | forg-982fee63848b4efbdbfbb74cfc04f01990781cdc.tar.gz |
sketchy filehash logic
Diffstat (limited to 'filehash.h')
-rw-r--r-- | filehash.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filehash.h b/filehash.h index c52f983..0639c25 100644 --- a/filehash.h +++ b/filehash.h @@ -2,8 +2,17 @@ typedef struct filehash_t filehash_t; +typedef enum { + fhs_accepts, + fhs_failure, + fhs_full, + fhs_rejected, +} filehash_state_t; + filehash_t * filehash_new(const char *hash_program, unsigned max_per_invocation); +filehash_state_t filehash_send(filehash_t *, const char *file_name); + void filehash_free(filehash_t *); |