[PATCH 1/3] lib: Explicitly state when replies will be destroyed
rhn
gihu.rhn at porcupinefactory.org
Mon Dec 17 09:57:46 PST 2018
Without an explicit guarantee, it's not clear how to use the reference.
---
lib/notmuch.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 247f6ad7..aa032e09 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -1400,6 +1400,8 @@ notmuch_message_get_thread_id (notmuch_message_t *message);
* If there are no replies to 'message', this function will return
* NULL. (Note that notmuch_messages_valid will accept that NULL
* value as legitimate, and simply return FALSE for it.)
+ *
+ * The returned list will be destroyed when the thread is destroyed.
*/
notmuch_messages_t *
notmuch_message_get_replies (notmuch_message_t *message);
--
2.17.2
More information about the notmuch
mailing list