]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/query.c
ruby: create Data_Wrap_Notmuch_Object helper
[notmuch] / bindings / ruby / query.c
index 8b46d700bdab01554c8944ec7903ea9ce8a3707e..b0fb4ea76c245681ab72ce6af47e4d4006117efe 100644 (file)
@@ -142,7 +142,7 @@ notmuch_rb_query_search_threads (VALUE self)
     if (status)
        notmuch_rb_status_raise (status);
 
-    return Data_Wrap_Struct (notmuch_rb_cThreads, NULL, NULL, threads);
+    return Data_Wrap_Notmuch_Object (notmuch_rb_cThreads, threads);
 }
 
 /*
@@ -163,7 +163,7 @@ notmuch_rb_query_search_messages (VALUE self)
     if (status)
        notmuch_rb_status_raise (status);
 
-    return Data_Wrap_Struct (notmuch_rb_cMessages, NULL, NULL, messages);
+    return Data_Wrap_Notmuch_Object (notmuch_rb_cMessages, messages);
 }
 
 /*