summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6273966)
Right now it doesn't do much, but it will help for further
reorganization.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
rb_raise (notmuch_rb_eBaseError, "%s", msg);
}
rb_raise (notmuch_rb_eBaseError, "%s", msg);
}
- return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags);
+ return notmuch_rb_tags_get (tags);
notmuch_rb_message_thaw (VALUE self);
/* tags.c */
notmuch_rb_message_thaw (VALUE self);
/* tags.c */
+VALUE
+notmuch_rb_tags_get (notmuch_tags_t *tags);
+
VALUE
notmuch_rb_tags_destroy (VALUE self);
VALUE
notmuch_rb_tags_destroy (VALUE self);
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags);
+ return notmuch_rb_tags_get (tags);
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags);
+ return notmuch_rb_tags_get (tags);
+VALUE
+notmuch_rb_tags_get (notmuch_tags_t *tags)
+{
+ return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags);
+}
+
/*
* call-seq: TAGS.destroy! => nil
*
/*
* call-seq: TAGS.destroy! => nil
*
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
if (!tags)
rb_raise (notmuch_rb_eMemoryError, "Out of memory");
- return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags);
+ return notmuch_rb_tags_get (tags);