#include "defs.h"
/*
- * call-seq: THREAD.destroy => nil
+ * call-seq: THREAD.destroy! => nil
*
* Destroys the thread, freeing all resources allocated for it.
*/
{
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
notmuch_thread_destroy(thread);
+ DATA_PTR(self) = NULL;
return Qnil;
}
const char *tid;
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
tid = notmuch_thread_get_thread_id(thread);
{
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
return INT2FIX(notmuch_thread_get_total_messages(thread));
}
notmuch_messages_t *messages;
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
messages = notmuch_thread_get_toplevel_messages(thread);
if (!messages)
{
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
return INT2FIX(notmuch_thread_get_matched_messages(thread));
}
const char *authors;
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
authors = notmuch_thread_get_authors(thread);
const char *subject;
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
subject = notmuch_thread_get_subject(thread);
{
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
return UINT2NUM(notmuch_thread_get_oldest_date(thread));
}
{
notmuch_thread_t *thread;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
return UINT2NUM(notmuch_thread_get_newest_date(thread));
}
notmuch_thread_t *thread;
notmuch_tags_t *tags;
- Data_Get_Struct(self, notmuch_thread_t, thread);
+ Data_Get_Notmuch_Thread(self, thread);
tags = notmuch_thread_get_tags(thread);
if (!tags)