diff options
author | Ali Polatel <polatel@gmail.com> | 2011-07-29 09:16:12 +0300 |
---|---|---|
committer | Ali Polatel <polatel@gmail.com> | 2011-07-29 09:16:12 +0300 |
commit | 666ef9f5f668467fc659b3016ac7f3cad00e2a9d (patch) | |
tree | 737da3ff4775ee63b37651a77e7be631c9d205bb /bindings/ruby | |
parent | 517faab24e5e85dcdf3e88c9bb707d43058d0656 (diff) |
ruby: Document remaining undocumented constants
Diffstat (limited to 'bindings/ruby')
-rw-r--r-- | bindings/ruby/init.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c index c423ac8e..884909e7 100644 --- a/bindings/ruby/init.c +++ b/bindings/ruby/init.c @@ -65,10 +65,35 @@ Init_notmuch(void) * Open the database in read write mode */ rb_define_const(mod, "MODE_READ_WRITE", INT2FIX(NOTMUCH_DATABASE_MODE_READ_WRITE)); + /* + * Document-const: Notmuch::SORT_OLDEST_FIRST + * + * Sort query results by oldest first + */ rb_define_const(mod, "SORT_OLDEST_FIRST", INT2FIX(NOTMUCH_SORT_OLDEST_FIRST)); + /* + * Document-const: Notmuch::SORT_NEWEST_FIRST + * + * Sort query results by newest first + */ rb_define_const(mod, "SORT_NEWEST_FIRST", INT2FIX(NOTMUCH_SORT_NEWEST_FIRST)); + /* + * Document-const: Notmuch::SORT_MESSAGE_ID + * + * Sort query results by message id + */ rb_define_const(mod, "SORT_MESSAGE_ID", INT2FIX(NOTMUCH_SORT_MESSAGE_ID)); + /* + * Document-const: Notmuch::SORT_UNSORTED + * + * Do not sort query results + */ rb_define_const(mod, "SORT_UNSORTED", INT2FIX(NOTMUCH_SORT_UNSORTED)); + /* + * Document-const: Notmuch::MESSAGE_FLAG_MATCH + * + * Message flag "match" + */ rb_define_const(mod, "MESSAGE_FLAG_MATCH", INT2FIX(NOTMUCH_MESSAGE_FLAG_MATCH)); /* * Document-const: Notmuch::TAG_MAX |