diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-03-22 20:06:50 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-03-22 20:06:50 +0100 |
| commit | 9c51895af08f367c112e77634cb534ecdc430bbf (patch) | |
| tree | e4adfbd15823b1872285b9d441ab1d625a63b6fb /src/ffi.rs | |
| parent | 95053bfc0010cb0bc00154a12f154063b6134375 (diff) | |
| download | mail-9c51895af08f367c112e77634cb534ecdc430bbf.tar.gz | |
slightly better interface, but still returning a null pointer...
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -751,9 +751,12 @@ extern { /// If a Xapian exception occurs this function will return NULL. /// /// @since libnotmuch 4.2 (notmuch 0.20) - pub fn notmuch_query_search_messages( - query: *mut notmuch_query_t, - ) -> *mut notmuch_messages_t; + pub fn notmuch_query_search_messages(query: *mut notmuch_query_t, + out: *mut *mut notmuch_messages_t) + -> notmuch_status_t; + pub fn notmuch_query_search_messages_st(query: *mut notmuch_query_t, + out: *mut *mut notmuch_messages_t) + -> notmuch_status_t; /// Destroy a `notmuch_query_t` along with any associated resources. /// |
