summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
commitd183e12a3231e4c505f5f2cf48b6c1f881ad258a (patch)
treeaffb4e4c0acc3bce3d14adba627f5193c166bc32 /ffi-macros
parentc8eb94375a38e5606441a9e86d402442662ffb02 (diff)
openpgp: Rename ComponentBinding to ComponentBundle, etc.
- Likewise KeyBinding, UserIDBinding, UserAttributeBinding, UnknownBinding, etc. - Reason: a self-signature on a component is a binding, but revocations and TPSes are not bindings. - Consistently call collections of components and associated signatures bundles now. Likewise for fields, methods. - Fixes #425.
Diffstat (limited to 'ffi-macros')
-rw-r--r--ffi-macros/src/rust2c.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs
index 0f06a674..2e469703 100644
--- a/ffi-macros/src/rust2c.rs
+++ b/ffi-macros/src/rust2c.rs
@@ -16,9 +16,9 @@ fn ident2c(ident: &syn::Ident) -> (String, bool) {
"KeyID" => return ("pgp_keyid_t".into(), true),
"CertBuilder" => return ("pgp_cert_builder_t".into(), true),
"UserID" => return ("pgp_userid_t".into(), true),
- "UserIDBinding" => return ("pgp_user_id_binding_t".into(), true),
- "UserIDBindingIter" =>
- return ("pgp_user_id_binding_iter_t".into(), true),
+ "UserIDBundle" => return ("pgp_user_id_bundle_t".into(), true),
+ "UserIDBundleIter" =>
+ return ("pgp_user_id_bundle_iter_t".into(), true),
// Types from the libc crate.
"c_void" => return ("void".into(), false),