Пример #1
0
// Next retrieves the next thread from the result set. Next returns true if a thread
// was successfully retrieved.
func (ts *Threads) Next(t *Thread) bool {
	if !ts.valid() {
		return false
	}
	*t = *ts.get()
	C.notmuch_threads_move_to_next(ts.toC())
	return true
}
Пример #2
0
/* Move the 'threads' iterator to the next thread.
 *
 * If 'threads' is already pointing at the last thread then the
 * iterator will be moved to a point just beyond that last thread,
 * (where notmuch_threads_valid will return FALSE and
 * notmuch_threads_get will return NULL).
 *
 * See the documentation of notmuch_query_search_threads for example
 * code showing how to iterate over a notmuch_threads_t object.
 */
func (self *Threads) MoveToNext() {
	if self.threads == nil {
		return
	}
	C.notmuch_threads_move_to_next(self.threads)
}
Пример #3
0
func (t *Threads) MoveToNext() {
	C.notmuch_threads_move_to_next(t.toC())
}