diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-07-06 22:45:32 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-08-02 13:49:29 -0300 |
| commit | 7415b53fa568a3156ae3e3a47544a4784e024653 (patch) | |
| tree | d0531ec3d465efb2a3c625fa794e498ad4ef4dc3 /bindings/ruby/init.c | |
| parent | e8fa42a97a2e98fecb5cabdbeac6c7ad0b936b7d (diff) | |
ruby: split database close and destroy
Mirrors the C API: 7864350c (Split notmuch_database_close into two
functions, 2012-04-25).
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'bindings/ruby/init.c')
| -rw-r--r-- | bindings/ruby/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c index 55c5366e..cd9f04cd 100644 --- a/bindings/ruby/init.c +++ b/bindings/ruby/init.c @@ -266,6 +266,7 @@ Init_notmuch (void) rb_define_alloc_func (notmuch_rb_cDatabase, notmuch_rb_database_alloc); rb_define_singleton_method (notmuch_rb_cDatabase, "open", notmuch_rb_database_open, -1); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "initialize", notmuch_rb_database_initialize, -1); /* in database.c */ + rb_define_method (notmuch_rb_cDatabase, "destroy!", notmuch_rb_database_destroy, 0); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "close", notmuch_rb_database_close, 0); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "path", notmuch_rb_database_path, 0); /* in database.c */ rb_define_method (notmuch_rb_cDatabase, "version", notmuch_rb_database_version, 0); /* in database.c */ |
