diff options
author | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:48:34 +0300 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:48:34 +0300 |
commit | c8a88fe95ddbb250190f8728e928ab408c478d13 (patch) | |
tree | 46d4612a7c88c929e03d740c1eb97aa0f3eed3da | |
parent | 05dddf883dd762420bb8e6b86790e68d734fd568 (diff) |
ruby: Really add wrappers for database_find_message*
Commit 898613116db746aa0f915ae43da8aba28545203d only added wrapper
functions but did not register them. Register the functions in module's
initialization function.
-rw-r--r-- | bindings/ruby/defs.h | 6 | ||||
-rw-r--r-- | bindings/ruby/init.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 44f6e321..308a2073 100644 --- a/bindings/ruby/defs.h +++ b/bindings/ruby/defs.h @@ -167,6 +167,12 @@ VALUE notmuch_rb_database_remove_message (VALUE self, VALUE pathv); VALUE +notmuch_rb_database_find_message (VALUE self, VALUE idv); + +VALUE +notmuch_rb_database_find_message_by_filename (VALUE self, VALUE pathv); + +VALUE notmuch_rb_database_query_create (VALUE self, VALUE qstrv); /* directory.c */ diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c index 1ea40c26..4405f196 100644 --- a/bindings/ruby/init.c +++ b/bindings/ruby/init.c @@ -193,6 +193,10 @@ Init_notmuch (void) rb_define_method (notmuch_rb_cDatabase, "get_directory", notmuch_rb_database_get_directory, 1); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "add_message", notmuch_rb_database_add_message, 1); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "remove_message", notmuch_rb_database_remove_message, 1); /* in database.c */ + rb_define_method (notmuch_rb_cDatabase, "find_message", + notmuch_rb_database_find_message, 1); /* in database.c */ + rb_define_method (notmuch_rb_cDatabase, "find_message_by_filename", + notmuch_rb_database_find_message_by_filename, 1); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "query", notmuch_rb_database_query_create, 1); /* in database.c */ /* |