]> git.notmuchmail.org Git - notmuch/commitdiff
ruby: Really add wrappers for database_find_message*
authorAli Polatel <alip@exherbo.org>
Tue, 4 Oct 2011 13:48:34 +0000 (16:48 +0300)
committerAli Polatel <alip@exherbo.org>
Tue, 4 Oct 2011 13:48:34 +0000 (16:48 +0300)
Commit 898613116db746aa0f915ae43da8aba28545203d only added wrapper
functions but did not register them. Register the functions in module's
initialization function.

bindings/ruby/defs.h
bindings/ruby/init.c

index 44f6e32198b939adc0ed6c706b82c93a5189ccf3..308a2073d10e82620f69624e8d9ecbee32613503 100644 (file)
@@ -166,6 +166,12 @@ notmuch_rb_database_add_message (VALUE self, VALUE pathv);
 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);
 
index 1ea40c266aaaebfcda526f5af7a84c88cc888ffb..4405f196413e58e0bf4a1d9fae286d6bad8d7c77 100644 (file)
@@ -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 */
 
     /*