aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-14 19:22:38 +0100
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-14 19:22:38 +0100
commitcc6896cca0839f5d97c5daee8ffba824c3c0d229 (patch)
tree991e348c590f3da671a1acc9ebd4f57cd497f974 /src/ffi.rs
parent1e060f14736922bfbd065a2ac611c64b9e2f5104 (diff)
downloadmail-cc6896cca0839f5d97c5daee8ffba824c3c0d229.tar.gz
add more tests
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs18
1 files changed, 18 insertions, 0 deletions
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}`