From 59396a3204b5f91fa0e578e2d0e5fa577285c02a Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Sat, 16 Oct 2021 09:11:35 +0200 Subject: [PATCH] add missing error codes --- Cargo.toml | 2 +- src/ffi.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 48e7415..70c5a71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "notmuch" -version = "0.6.0" +version = "0.6.1" authors = ["Dirk Van Haerenborgh "] homepage = "https://github.com/vhdirk/notmuch-rs" repository = "https://github.com/vhdirk/notmuch-rs" diff --git a/src/ffi.rs b/src/ffi.rs index 5c276d8..8ea0601 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -26,6 +26,15 @@ notmuch_enum! { NOTMUCH_STATUS_UNBALANCED_ATOMIC => UnbalancedAtomic, NOTMUCH_STATUS_UNSUPPORTED_OPERATION => UnsupportedOperation, NOTMUCH_STATUS_UPGRADE_REQUIRED => UpgradeRequired, + NOTMUCH_STATUS_PATH_ERROR => PathError, + NOTMUCH_STATUS_IGNORED => Ignored, + NOTMUCH_STATUS_ILLEGAL_ARGUMENT => IllegalArgument, + NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL => MalformedCryptoProtocol, + NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION => FailedCryptoContextCreation, + NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL => UnknownCryptoProtocol, + NOTMUCH_STATUS_NO_CONFIG => NoConfig, + NOTMUCH_STATUS_NO_DATABASE => NoDatabase, + NOTMUCH_STATUS_DATABASE_EXISTS => DatabaseExists, // Not an actual status value. Just a way to find out how many // valid status values there are. NOTMUCH_STATUS_LAST_STATUS => LastStatus