aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2016-10-31 22:31:04 +0100
committerTharre <tharre3@gmail.com>2016-10-31 22:31:04 +0100
commit6b86ecb97dc5c49993a34092a8edc199201a2056 (patch)
tree34f4f046aa817152b49fb0fbff42a1375b4b1e41 /src/util.h
parent75bf720347983547c21228df71b80a0409a32e28 (diff)
downloadredo-6b86ecb97dc5c49993a34092a8edc199201a2056.tar.gz
redo-6b86ecb97dc5c49993a34092a8edc199201a2056.tar.xz
redo-6b86ecb97dc5c49993a34092a8edc199201a2056.zip
Move utility functions to util.c
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 5e46166..159626d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -10,11 +10,15 @@
#define __RUTIL_H__
#include <stddef.h>
+#include <stdio.h>
extern void __attribute__((noreturn)) die_(const char *err, ...);
extern void *xmalloc(size_t size);
extern void *xrealloc(void *ptr, size_t size);
extern char *xstrdup(const char *str);
extern char *concat(size_t count, ...);
+extern unsigned char *hash_file(FILE *fp);
+extern void sha1_to_hex(const unsigned char *sha1, char *buf);
+extern void hex_to_sha1(const char *s, unsigned char *sha1);
#endif