about summary refs log tree commit diff stats
path: root/filehash.h
diff options
context:
space:
mode:
authorDacav <dacav@fastmail.com>2020-08-29 15:21:04 +0200
committerDacav <dacav@fastmail.com>2020-08-29 15:21:04 +0200
commit982fee63848b4efbdbfbb74cfc04f01990781cdc (patch)
tree854806ae7dbf4f9c1e3e68bb0e5717e75769d539 /filehash.h
parent32dc8587ab24d5832fb3826a631c8c50524a9a25 (diff)
downloadforg-982fee63848b4efbdbfbb74cfc04f01990781cdc.tar.gz
sketchy filehash logic
Diffstat (limited to 'filehash.h')
-rw-r--r--filehash.h9
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 *);