about summary refs log tree commit diff stats
path: root/filehash.h
diff options
context:
space:
mode:
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 *);