diff options
author | Justus Winter <justus@pep-project.org> | 2017-11-23 14:34:45 +0100 |
---|---|---|
committer | Justus Winter <justus@pep-project.org> | 2017-11-23 14:36:36 +0100 |
commit | 9a5725fe55eb5e49cee09712364ac7b7dcefde51 (patch) | |
tree | 4f0b3b5e86a02236a06c503e8adcc03fc6fc1d7e /src/sequoia.h | |
parent | 8cdab3036cfd2111fd3719abc38ab334bc72ebdc (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.h | 10 |
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 |