[PATCH 0/3] API: add notes on lifetimes

rhn gihu.rhn at porcupinefactory.org
Mon Dec 17 09:57:45 PST 2018


Hi,

this patch series addresses API shortcomings that were found while working on the Rust bindings [0].

The first two patches address the problem that the docs never clearly state when messages obtained as replies are destroyed, while the last patch fixes abroken API example.

Thanks for Dirk Van Haerenborgh for working out how long notmuch objects live.

Cheers,
rhn

[0] https://github.com/vhdirk/notmuch-rs

rhn (3):
  lib: Explicitly state when replies will be destroyed
  test: Check for replies obeying lifetime guarantees
  docs: Use correct call to notmuch_query_search_threads in usage
    example

 lib/notmuch.h             | 10 ++++-
 test/T720-lib-lifetime.sh | 83 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+), 1 deletion(-)
 create mode 100755 test/T720-lib-lifetime.sh

-- 
2.17.2



More information about the notmuch mailing list