@ -1,5 +1,6 @@
#![ allow(non_camel_case_types) ]
#![ allow(non_upper_case_globals) ]
#![ allow(clippy::doc_markdown) ]
use libc ::time_t ;
/* automatically generated by rust-bindgen */
@ -8,12 +9,12 @@ pub type __syscall_slong_t = ::std::os::raw::c_long;
/// Notmuch boolean type.
pub type notmuch_bool_t = ::std ::os ::raw ::c_int ;
/// No error occurred.
pub const _notmuch_status_ NOTMUCH_STATUS_SUCCESS: _notmuch_status = 0 ;
pub const NOTMUCH_STATUS_SUCCESS: _notmuch_status = 0 ;
/// Out of memory.
pub const _notmuch_status_ NOTMUCH_STATUS_OUT_OF_MEMORY: _notmuch_status = 1 ;
pub const NOTMUCH_STATUS_OUT_OF_MEMORY: _notmuch_status = 1 ;
/// An attempt was made to write to a database opened in read-only
/// mode.
pub const _notmuch_status_ NOTMUCH_STATUS_READ_ONLY_DATABASE: _notmuch_status = 2 ;
pub const NOTMUCH_STATUS_READ_ONLY_DATABASE: _notmuch_status = 2 ;
/// A Xapian exception occurred.
///
/// ```text
@ -21,54 +22,54 @@ pub const _notmuch_status_NOTMUCH_STATUS_READ_ONLY_DATABASE: _notmuch_status = 2
/// value. Instead we should map to things like DATABASE_LOCKED or
/// whatever.
/// ```
pub const _notmuch_status_ NOTMUCH_STATUS_XAPIAN_EXCEPTION: _notmuch_status = 3 ;
pub const NOTMUCH_STATUS_XAPIAN_EXCEPTION: _notmuch_status = 3 ;
/// An error occurred trying to read or write to a file (this could
/// be file not found, permission denied, etc.)
pub const _notmuch_status_ NOTMUCH_STATUS_FILE_ERROR: _notmuch_status = 4 ;
pub const NOTMUCH_STATUS_FILE_ERROR: _notmuch_status = 4 ;
/// A file was presented that doesn't appear to be an email
/// message.
pub const _notmuch_status_ NOTMUCH_STATUS_FILE_NOT_EMAIL: _notmuch_status = 5 ;
pub const NOTMUCH_STATUS_FILE_NOT_EMAIL: _notmuch_status = 5 ;
/// A file contains a message ID that is identical to a message
/// already in the database.
pub const _notmuch_status_ NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: _notmuch_status = 6 ;
pub const NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: _notmuch_status = 6 ;
/// The user erroneously passed a NULL pointer to a notmuch
/// function.
pub const _notmuch_status_ NOTMUCH_STATUS_NULL_POINTER: _notmuch_status = 7 ;
pub const NOTMUCH_STATUS_NULL_POINTER: _notmuch_status = 7 ;
/// A tag value is too long (exceeds NOTMUCH_TAG_MAX).
pub const _notmuch_status_ NOTMUCH_STATUS_TAG_TOO_LONG: _notmuch_status = 8 ;
pub const NOTMUCH_STATUS_TAG_TOO_LONG: _notmuch_status = 8 ;
/// The notmuch_message_thaw function has been called more times
/// than notmuch_message_freeze.
pub const _notmuch_status_ NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: _notmuch_status = 9 ;
pub const NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: _notmuch_status = 9 ;
/// notmuch_database_end_atomic has been called more times than
/// notmuch_database_begin_atomic.
pub const _notmuch_status_ NOTMUCH_STATUS_UNBALANCED_ATOMIC: _notmuch_status = 10 ;
pub const NOTMUCH_STATUS_UNBALANCED_ATOMIC: _notmuch_status = 10 ;
/// The operation is not supported.
pub const _notmuch_status_ NOTMUCH_STATUS_UNSUPPORTED_OPERATION: _notmuch_status = 11 ;
pub const NOTMUCH_STATUS_UNSUPPORTED_OPERATION: _notmuch_status = 11 ;
/// The operation requires a database upgrade.
pub const _notmuch_status_ NOTMUCH_STATUS_UPGRADE_REQUIRED: _notmuch_status = 12 ;
pub const NOTMUCH_STATUS_UPGRADE_REQUIRED: _notmuch_status = 12 ;
/// There is a problem with the proposed path, e.g. a relative path
/// passed to a function expecting an absolute path.
pub const _notmuch_status_ NOTMUCH_STATUS_PATH_ERROR: _notmuch_status = 13 ;
pub const NOTMUCH_STATUS_PATH_ERROR: _notmuch_status = 13 ;
/// The requested operation was ignored. Depending on the function,
/// this may not be an actual error.
pub const _notmuch_status_ NOTMUCH_STATUS_IGNORED: _notmuch_status = 14 ;
pub const NOTMUCH_STATUS_IGNORED: _notmuch_status = 14 ;
/// One of the arguments violates the preconditions for the
/// function, in a way not covered by a more specific argument.
pub const _notmuch_status_ NOTMUCH_STATUS_ILLEGAL_ARGUMENT: _notmuch_status = 15 ;
pub const NOTMUCH_STATUS_ILLEGAL_ARGUMENT: _notmuch_status = 15 ;
/// A MIME object claimed to have cryptographic protection which
/// notmuch tried to handle, but the protocol was not specified in
/// an intelligible way.
pub const _notmuch_status_ NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL: _notmuch_status = 16 ;
pub const NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL: _notmuch_status = 16 ;
/// Notmuch attempted to do crypto processing, but could not
/// initialize the engine needed to do so.
pub const _notmuch_status_ NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION: _notmuch_status = 17 ;
pub const NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION: _notmuch_status = 17 ;
/// A MIME object claimed to have cryptographic protection, and
/// notmuch attempted to process it, but the specific protocol was
/// something that notmuch doesn't know how to handle.
pub const _notmuch_status_ NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL: _notmuch_status = 18 ;
pub const NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL: _notmuch_status = 18 ;
/// Not an actual status value. Just a way to find out how many
/// valid status values there are.
pub const _notmuch_status_ NOTMUCH_STATUS_LAST_STATUS: _notmuch_status = 19 ;
pub const NOTMUCH_STATUS_LAST_STATUS: _notmuch_status = 19 ;
///
/// A zero value (NOTMUCH_STATUS_SUCCESS) indicates that the function
/// completed without error. Any other value indicates an error.
@ -192,9 +193,9 @@ pub type notmuch_database_create_verbose = unsafe extern "C" fn(
) -> notmuch_status_t ;
/// Open database for reading only.
pub const notmuch_database_mode_t_ NOTMUCH_DATABASE_MODE_READ_ONLY: notmuch_database_mode_t = 0 ;
pub const NOTMUCH_DATABASE_MODE_READ_ONLY: notmuch_database_mode_t = 0 ;
/// Open database for reading and writing.
pub const notmuch_database_mode_t_ NOTMUCH_DATABASE_MODE_READ_WRITE: notmuch_database_mode_t = 1 ;
pub const NOTMUCH_DATABASE_MODE_READ_WRITE: notmuch_database_mode_t = 1 ;
/// Database open mode for notmuch_database_open.
pub type notmuch_database_mode_t = u32 ;
/// Open an existing notmuch database located at 'path'.
@ -640,13 +641,13 @@ pub type notmuch_query_create = unsafe extern "C" fn(
) -> * mut notmuch_query_t ;
/// Oldest first.
pub const notmuch_sort_t_ NOTMUCH_SORT_OLDEST_FIRST: notmuch_sort_t = 0 ;
pub const NOTMUCH_SORT_OLDEST_FIRST: notmuch_sort_t = 0 ;
/// Newest first.
pub const notmuch_sort_t_ NOTMUCH_SORT_NEWEST_FIRST: notmuch_sort_t = 1 ;
pub const NOTMUCH_SORT_NEWEST_FIRST: notmuch_sort_t = 1 ;
/// Sort by message-id.
pub const notmuch_sort_t_ NOTMUCH_SORT_MESSAGE_ID: notmuch_sort_t = 2 ;
pub const NOTMUCH_SORT_MESSAGE_ID: notmuch_sort_t = 2 ;
/// Do not sort.
pub const notmuch_sort_t_ NOTMUCH_SORT_UNSORTED: notmuch_sort_t = 3 ;
pub const NOTMUCH_SORT_UNSORTED: notmuch_sort_t = 3 ;
/// Sort values for notmuch_query_set_sort.
pub type notmuch_sort_t = u32 ;
/// Return the query_string of this query. See notmuch_query_create.
@ -657,9 +658,9 @@ pub type notmuch_query_get_query_string =
pub type notmuch_query_get_database =
unsafe extern "C" fn ( query : * const notmuch_query_t ) -> * mut notmuch_database_t ;
pub const notmuch_exclude_t_ NOTMUCH_EXCLUDE_FLAG: notmuch_exclude_t = 0 ;
pub const notmuch_exclude_t_ NOTMUCH_EXCLUDE_TRUE: notmuch_exclude_t = 1 ;
pub const notmuch_exclude_t_ NOTMUCH_EXCLUDE_FALSE: notmuch_exclude_t = 2 ;
pub const NOTMUCH_EXCLUDE_FLAG: notmuch_exclude_t = 0 ;
pub const NOTMUCH_EXCLUDE_TRUE: notmuch_exclude_t = 1 ;
pub const NOTMUCH_EXCLUDE_FALSE: notmuch_exclude_t = 2 ;
pub const notmuch_exclude_t_NOTMUCH_EXCLUDE_ALL : notmuch_exclude_t = 3 ;
/// Exclude values for notmuch_query_set_omit_excluded. The strange
/// order is to maintain backward compatibility: the old FALSE/TRUE
@ -1260,9 +1261,9 @@ pub type notmuch_message_reindex = unsafe extern "C" fn(
indexopts : * mut notmuch_indexopts_t ,
) -> notmuch_status_t ;
pub const _notmuch_message_flag_ NOTMUCH_MESSAGE_FLAG_MATCH: _notmuch_message_flag = 0 ;
pub const _notmuch_message_flag_ NOTMUCH_MESSAGE_FLAG_EXCLUDED: _notmuch_message_flag = 1 ;
pub const _notmuch_message_flag_ NOTMUCH_MESSAGE_FLAG_GHOST: _notmuch_message_flag = 2 ;
pub const NOTMUCH_MESSAGE_FLAG_MATCH: _notmuch_message_flag = 0 ;
pub const NOTMUCH_MESSAGE_FLAG_EXCLUDED: _notmuch_message_flag = 1 ;
pub const NOTMUCH_MESSAGE_FLAG_GHOST: _notmuch_message_flag = 2 ;
/// Message flags.
pub type _notmuch_message_flag = u32 ;
pub use self ::_notmuch_message_flag as notmuch_message_flag_t ;
@ -2029,10 +2030,10 @@ pub type notmuch_config_list_destroy =
pub type notmuch_database_get_default_indexopts =
unsafe extern "C" fn ( db : * mut notmuch_database_t ) -> * mut notmuch_indexopts_t ;
pub const notmuch_decryption_policy_t_ NOTMUCH_DECRYPT_FALSE: notmuch_decryption_policy_t = 0 ;
pub const notmuch_decryption_policy_t_ NOTMUCH_DECRYPT_TRUE: notmuch_decryption_policy_t = 1 ;
pub const notmuch_decryption_policy_t_ NOTMUCH_DECRYPT_AUTO: notmuch_decryption_policy_t = 2 ;
pub const notmuch_decryption_policy_t_ NOTMUCH_DECRYPT_NOSTASH: notmuch_decryption_policy_t = 3 ;
pub const NOTMUCH_DECRYPT_FALSE: notmuch_decryption_policy_t = 0 ;
pub const NOTMUCH_DECRYPT_TRUE: notmuch_decryption_policy_t = 1 ;
pub const NOTMUCH_DECRYPT_AUTO: notmuch_decryption_policy_t = 2 ;
pub const NOTMUCH_DECRYPT_NOSTASH: notmuch_decryption_policy_t = 3 ;
/// Stating a policy about how to decrypt messages.
///
/// See index.decrypt in notmuch-config(1) for more details.