From cc6896cca0839f5d97c5daee8ffba824c3c0d229 Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Thu, 14 Nov 2019 19:22:38 +0100 Subject: add more tests --- src/ffi.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/ffi.rs') diff --git a/src/ffi.rs b/src/ffi.rs index 1e29783..5dc93aa 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -1484,6 +1484,24 @@ extern "C" { exact: notmuch_bool_t, ) -> *mut notmuch_message_properties_t; + + /// Return the number of properties named "key" belonging to the specific message. + /// + /// @param[in] message The message to examine + /// @param[in] key key to count + /// @param[out] count The number of matching properties associated with this message. + /// + /// @returns + /// + /// NOTMUCH_STATUS_SUCCESS: successful count, possibly some other error. + /// + /// @since libnotmuch 5.2 (notmuch 0.27) + pub fn notmuch_message_count_properties( + message: *mut notmuch_message_t, + key: *const c_char, + count: *mut c_uint, + ) -> notmuch_status_t; + /// Is the given *properties* iterator pointing at a valid `(key,value)` pair. /// /// When this function returns TRUE, `notmuch_message_properties_{key,value}` -- cgit v1.2.1