summaryrefslogtreecommitdiffstats
path: root/src/sequoia.h
diff options
context:
space:
mode:
authorJustus Winter <justus@pep-project.org>2017-11-23 14:34:45 +0100
committerJustus Winter <justus@pep-project.org>2017-11-23 14:36:36 +0100
commit9a5725fe55eb5e49cee09712364ac7b7dcefde51 (patch)
tree4f0b3b5e86a02236a06c503e8adcc03fc6fc1d7e /src/sequoia.h
parent8cdab3036cfd2111fd3719abc38ab334bc72ebdc (diff)
Add a foreign function interface.
- For now, we keep the ffi in this crate, later on we may want to move it to sequoia-ffi. - Example code how to use the library from C is added as well.
Diffstat (limited to 'src/sequoia.h')
-rw-r--r--src/sequoia.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sequoia.h b/src/sequoia.h
new file mode 100644
index 00000000..0853b9aa
--- /dev/null
+++ b/src/sequoia.h
@@ -0,0 +1,10 @@
+#ifndef SEQUOIA_H
+#define SEQUOIA_H
+
+struct sq_tpk;
+
+struct sq_tpk *sq_tpk_from_bytes (const char *b, size_t len);
+void sq_tpk_dump (const struct sq_tpk *tpk);
+void sq_tpk_free (struct sq_tpk *tpk);
+
+#endif