summaryrefslogtreecommitdiff
path: root/src/or/consdiff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/consdiff.h')
-rw-r--r--src/or/consdiff.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/or/consdiff.h b/src/or/consdiff.h
new file mode 100644
index 0000000000..da8dbac79b
--- /dev/null
+++ b/src/or/consdiff.h
@@ -0,0 +1,22 @@
+/* Copyright (c) 2014, Daniel Martí
+ * Copyright (c) 2014, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef TOR_CONSDIFF_H
+#define TOR_CONSDIFF_H
+
+#include "or.h"
+
+smartlist_t *
+consdiff_gen_diff(smartlist_t *cons1, smartlist_t *cons2,
+ common_digests_t *digests1, common_digests_t *digests2);
+char *
+consdiff_apply_diff(smartlist_t *cons1, smartlist_t *diff,
+ common_digests_t *digests1);
+int
+consdiff_get_digests(smartlist_t *diff,
+ char *digest1, char *digest1_hex,
+ char *digest2, char *digest2_hex);
+
+#endif
+