]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/threads.c
ruby: create Data_Wrap_Notmuch_Object helper
[notmuch] / bindings / ruby / threads.c
index 5885f5651ceeb100b3011557d462c8bdba29d586..19e09a7e272a8344dcd0fa4acf50cef905044965 100644 (file)
@@ -53,7 +53,7 @@ notmuch_rb_threads_each (VALUE self)
 
     for (; notmuch_threads_valid (threads); notmuch_threads_move_to_next (threads)) {
        thread = notmuch_threads_get (threads);
-       rb_yield (Data_Wrap_Struct (notmuch_rb_cThread, NULL, NULL, thread));
+       rb_yield (Data_Wrap_Notmuch_Object (notmuch_rb_cThread, thread));
     }
 
     return self;