]> git.notmuchmail.org Git - notmuch/blob - bindings/ruby/filenames.c
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / bindings / ruby / filenames.c
1 #include "defs.h"
2
3 VALUE
4 notmuch_rb_filenames_get (notmuch_filenames_t *fnames)
5 {
6     VALUE rb_array = rb_ary_new ();
7
8     for (; notmuch_filenames_valid (fnames); notmuch_filenames_move_to_next (fnames))
9         rb_ary_push (rb_array, rb_str_new2 (notmuch_filenames_get (fnames)));
10     return rb_array;
11 }