aboutsummaryrefslogtreecommitdiff
path: root/bindings/ruby/thread.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2021-05-15 16:21:02 -0500
committerDavid Bremner <david@tethera.net>2021-05-17 07:25:14 -0300
commit9574fb60991fa81799fbd1d26d41693ca2794e6b (patch)
treeba33e4b827c0a28cab95b876ed2eb0af2fbcbb09 /bindings/ruby/thread.c
parentfba9774a81e90a179ccfa810c47a501eaf266e2b (diff)
ruby: add all data types
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'bindings/ruby/thread.c')
-rw-r--r--bindings/ruby/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/ruby/thread.c b/bindings/ruby/thread.c
index e09be147..f6bf7849 100644
--- a/bindings/ruby/thread.c
+++ b/bindings/ruby/thread.c
@@ -88,7 +88,7 @@ notmuch_rb_thread_get_toplevel_messages (VALUE self)
if (!messages)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cMessages, messages);
+ return Data_Wrap_Notmuch_Object (notmuch_rb_cMessages, &notmuch_rb_messages_type, messages);
}
/*
@@ -108,7 +108,7 @@ notmuch_rb_thread_get_messages (VALUE self)
if (!messages)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cMessages, messages);
+ return Data_Wrap_Notmuch_Object (notmuch_rb_cMessages, &notmuch_rb_messages_type, messages);
}
/*
@@ -209,5 +209,5 @@ notmuch_rb_thread_get_tags (VALUE self)
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, tags);
+ return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, &notmuch_rb_tags_type, tags);
}