diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-14 19:22:38 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-14 19:22:38 +0100 |
| commit | cc6896cca0839f5d97c5daee8ffba824c3c0d229 (patch) | |
| tree | 991e348c590f3da671a1acc9ebd4f57cd497f974 /src/ffi.rs | |
| parent | 1e060f14736922bfbd065a2ac611c64b9e2f5104 (diff) | |
| download | mail-cc6896cca0839f5d97c5daee8ffba824c3c0d229.tar.gz | |
add more tests
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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}` |
