]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Document extent of some return values
authorAustin Clements <amdragon@MIT.EDU>
Thu, 24 Oct 2013 15:19:03 +0000 (11:19 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 9 Nov 2013 00:14:08 +0000 (20:14 -0400)
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

index 6c3942d3ca509ecd608cddcb81995b4b11e5384f..7c3a30c1adb1fb90e299d99c6fba1161bab8d0a7 100644 (file)
@@ -794,12 +794,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);