From: Austin Clements <amdragon@MIT.EDU>
To: notmuch@notmuchmail.org
Subject: [PATCH v2 03/11] lib: Document extent of some return values
Date: Thu, 24 Oct 2013 11:19:03 -0400 [thread overview]
Message-ID: <1382627951-25252-4-git-send-email-amdragon@mit.edu> (raw)
In-Reply-To: <1382627951-25252-1-git-send-email-amdragon@mit.edu>
This documents the extent of the notmuch_messages_t* pointers returned
by notmuch_thread_get_toplevel_messages and
notmuch_thread_get_messages.
---
lib/notmuch.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 9dab555..0fb7121 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -765,12 +765,16 @@ notmuch_thread_get_total_messages (notmuch_thread_t *thread);
* This iterator will not necessarily iterate over all of the messages
* in the thread. It will only iterate over the messages in the thread
* which are not replies to other messages in the thread.
+ *
+ * The returned list will be destroyed when the thread is destroyed.
*/
notmuch_messages_t *
notmuch_thread_get_toplevel_messages (notmuch_thread_t *thread);
/* Get a notmuch_thread_t iterator for all messages in 'thread' in
* oldest-first order.
+ *
+ * The returned list will be destroyed when the thread is destroyed.
*/
notmuch_messages_t *
notmuch_thread_get_messages (notmuch_thread_t *thread);
--
1.8.4.rc3
next prev parent reply other threads:[~2013-10-24 15:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 15:19 [PATCH v2 00/11] Fix search tagging races Austin Clements
2013-10-24 15:19 ` [PATCH v2 01/11] schemata: Disambiguate non-terminal names Austin Clements
2013-10-24 15:19 ` [PATCH v2 02/11] cli: Separate current and deprecated format version Austin Clements
2013-10-24 15:19 ` Austin Clements [this message]
2013-10-24 15:19 ` [PATCH v2 04/11] test: Fix missing erase-buffer in emacs test Austin Clements
2013-10-24 15:19 ` [PATCH v2 05/11] emacs: Move `notmuch-call-notmuch-process' to notmuch-lib Austin Clements
2013-10-24 15:19 ` [PATCH v2 06/11] emacs: Support passing input via `notmuch-call-notmuch-*' Austin Clements
2013-10-24 15:19 ` [PATCH v2 07/11] emacs: Use notmuch tag --batch for large tag queries Austin Clements
2013-10-24 15:19 ` [PATCH v2 08/11] search: Add stable queries to thread search results Austin Clements
2013-10-24 15:19 ` [PATCH v2 09/11] Add TODO about more efficient stable thread queries Austin Clements
2013-10-24 15:19 ` [PATCH v2 10/11] emacs: Add known-broken tests for search tagging races Austin Clements
2013-10-24 15:19 ` [PATCH v2 11/11] emacs: Fix " Austin Clements
2013-10-25 23:10 ` [PATCH v2 00/11] " Mark Walters
2013-11-07 17:26 ` Tomi Ollila
2013-11-09 1:00 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382627951-25252-4-git-send-email-amdragon@mit.edu \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).