X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fruby%2Fmessages.c;h=3d1669eec2f32b3c99980d57594b02eef2a2097c;hb=12c36a5e3f676d5108cede6ac09204fb62fa20b1;hp=a337feeb499fff177e7f3c6659373eaf0c004a00;hpb=682479592b33b13a22143f4fe67678c066bf223a;p=notmuch diff --git a/bindings/ruby/messages.c b/bindings/ruby/messages.c index a337feeb..3d1669ee 100644 --- a/bindings/ruby/messages.c +++ b/bindings/ruby/messages.c @@ -53,7 +53,7 @@ notmuch_rb_messages_each (VALUE self) for (; notmuch_messages_valid (messages); notmuch_messages_move_to_next (messages)) { message = notmuch_messages_get (messages); - rb_yield (Data_Wrap_Struct (notmuch_rb_cMessage, NULL, NULL, message)); + rb_yield (Data_Wrap_Notmuch_Object (notmuch_rb_cMessage, message)); } return self; @@ -76,5 +76,5 @@ notmuch_rb_messages_collect_tags (VALUE self) if (!tags) rb_raise (notmuch_rb_eMemoryError, "Out of memory"); - return Data_Wrap_Struct (notmuch_rb_cTags, NULL, NULL, tags); + return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, tags); }