summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hgfs/fns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-06-26 07:03:12 +0200
committercinap_lenrek <cinap_lenrek@localhost>2011-06-26 07:03:12 +0200
commitbc1ff6985c03402497a052d2b4e2a299b3cdf218 (patch)
tree92dcfc77cd3fed9adae59994fd4825a7770bead8 /sys/src/cmd/hgfs/fns.h
parent8fa679d04171417d9420b91471cf45e148b4cc50 (diff)
add hgfs, a mercurial filesystem
Diffstat (limited to 'sys/src/cmd/hgfs/fns.h')
-rw-r--r--sys/src/cmd/hgfs/fns.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/src/cmd/hgfs/fns.h b/sys/src/cmd/hgfs/fns.h
new file mode 100644
index 000000000..e676ae605
--- /dev/null
+++ b/sys/src/cmd/hgfs/fns.h
@@ -0,0 +1,30 @@
+/* hash */
+int Hfmt(Fmt *f);
+int strhash(char *s, uchar *h);
+int fhash(int fd, uchar p1[], uchar p2[], uchar h[]);
+
+/* patch */
+int fpatchmark(int pfd, char *mark);
+int fpatch(int ofd, int bfd, int pfd);
+
+/* zip */
+int funzip(int ofd, int zfd, int len);
+
+/* revlog */
+int fmktemp(void);
+int revlogopen(Revlog *r, char *path, int mode);
+void revlogclose(Revlog *r);
+int revlogextract(Revlog *r, int rev, int ofd);
+uchar *revhash(Revlog *r, int rev);
+int hashrev(Revlog *r, uchar hash[]);
+int revlogopentemp(Revlog *r, int rev);
+
+/* info */
+Revinfo *loadrevinfo(Revlog *changelog, int rev);
+
+/* tree */
+char *nodepath(char *s, char *e, Revnode *nd);
+Revtree *loadfilestree(Revlog *changelog, Revlog *manifest, Revinfo *ri);
+Revtree *loadchangestree(Revlog *changelog, Revlog *manifest, Revinfo *ri);
+void closerevtree(Revtree *t);
+