X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fruby%2Fthreads.c;h=d809b571d3335ad30d817ed0daeed03bec0133b8;hb=9574fb60991fa81799fbd1d26d41693ca2794e6b;hp=ed403a8f1f3db30e88d8fd030991ae1b62b1c9e6;hpb=2f4beda434c59f9e2f5b7c32d26543bad7217ad4;p=notmuch diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index ed403a8f..d809b571 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -30,7 +30,7 @@ notmuch_rb_threads_destroy (VALUE self) { notmuch_threads_t *threads; - Data_Get_Struct (self, notmuch_threads_t, threads); + Data_Get_Notmuch_Threads (self, threads); notmuch_threads_destroy (threads); DATA_PTR (self) = NULL; @@ -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, ¬much_rb_thread_type, thread)); } return self;