diff options
author | François Laignel <fengalin@free.fr> | 2021-04-12 19:12:05 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-13 18:24:20 +0300 |
commit | 7d17f88941323013b7e2413aadaf53832a085195 (patch) | |
tree | 65a823b82489af25875062b96e37ef229506455e /generic/sodium | |
parent | 06accc8d98cc2876bcacfc6f9e097af690b4e64f (diff) |
post fix-getters manual updates
Diffstat (limited to 'generic/sodium')
-rw-r--r-- | generic/sodium/examples/decrypt_example.rs | 2 | ||||
-rw-r--r-- | generic/sodium/examples/encrypt_example.rs | 2 | ||||
-rw-r--r-- | generic/sodium/examples/generate_keys.rs | 2 | ||||
-rw-r--r-- | generic/sodium/src/decrypter/imp.rs | 4 | ||||
-rw-r--r-- | generic/sodium/src/encrypter/imp.rs | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/generic/sodium/examples/decrypt_example.rs b/generic/sodium/examples/decrypt_example.rs index e8a1566d1..78817e44a 100644 --- a/generic/sodium/examples/decrypt_example.rs +++ b/generic/sodium/examples/decrypt_example.rs @@ -68,7 +68,7 @@ fn main() -> Result<(), Box<dyn Error>> { .required(true) .takes_value(true), ) - .matches(); + .get_matches(); gst::init()?; gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); diff --git a/generic/sodium/examples/encrypt_example.rs b/generic/sodium/examples/encrypt_example.rs index ec57ecc33..c4e6f66b6 100644 --- a/generic/sodium/examples/encrypt_example.rs +++ b/generic/sodium/examples/encrypt_example.rs @@ -68,7 +68,7 @@ fn main() -> Result<(), Box<dyn Error>> { .required(true) .takes_value(true), ) - .matches(); + .get_matches(); gst::init()?; gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); diff --git a/generic/sodium/examples/generate_keys.rs b/generic/sodium/examples/generate_keys.rs index cf184e93f..fa5e137b8 100644 --- a/generic/sodium/examples/generate_keys.rs +++ b/generic/sodium/examples/generate_keys.rs @@ -92,7 +92,7 @@ fn main() { .short("j") .help("Write a JSON file instead of a key.prv/key.pub pair"), ) - .matches(); + .get_matches(); let keys = Keys::new(); diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index 80e1a774e..7ab81a38b 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -602,14 +602,14 @@ impl ObjectImpl for Decrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "receiver-key", "Receiver Key", "The private key of the Reeiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "sender-key", "Sender Key", "The public key of the Sender", diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index 415c8a4db..c84f104fa 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -393,21 +393,21 @@ impl ObjectImpl for Encrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "receiver-key", "Receiver Key", "The public key of the Receiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "sender-key", "Sender Key", "The private key of the Sender", glib::Bytes::static_type(), glib::ParamFlags::WRITABLE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "block-size", "Block Size", "The block-size of the chunks", |