]> git.notmuchmail.org Git - notmuch/commitdiff
Use notmuch_database_destroy instead of notmuch_database_close
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 22 Apr 2012 12:07:53 +0000 (14:07 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Apr 2012 12:27:33 +0000 (09:27 -0300)
Adapt the notmuch binaries source to the notmuch_database_close split.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
notmuch-count.c
notmuch-dump.c
notmuch-new.c
notmuch-reply.c
notmuch-restore.c
notmuch-search.c
notmuch-show.c
notmuch-tag.c

index b76690c0d5eb776096c481f2aff6d9fd62a3e728..9c2ad7b2a9226bb8ee616779d88cde69171ac704 100644 (file)
@@ -107,7 +107,7 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
     }
 
     notmuch_query_destroy (query);
     }
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     return 0;
 }
 
     return 0;
 }
index a73587562fb9ce929e78807ec46fc8a97e5df087..71ab0ea73d69f44de2505099c86f605e0d3cb33e 100644 (file)
@@ -116,7 +116,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
        fclose (output);
 
     notmuch_query_destroy (query);
        fclose (output);
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     return 0;
 }
 
     return 0;
 }
index 473201e961cdb61fe51c1807a18b4161d3615f48..3ff630478c613848f342ddbdb42fa625484254d0 100644 (file)
@@ -1041,7 +1041,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[])
        fprintf (stderr, "Note: A fatal error was encountered: %s\n",
                 notmuch_status_to_string (ret));
 
        fprintf (stderr, "Note: A fatal error was encountered: %s\n",
                 notmuch_status_to_string (ret));
 
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     if (run_hooks && !ret && !interrupted)
        ret = notmuch_run_hook (db_path, "post-new");
 
     if (run_hooks && !ret && !interrupted)
        ret = notmuch_run_hook (db_path, "post-new");
index 0949d9fdc23eb5517695a10c352eabce9a66bf7b..da99a1374688befd36a859807862a25d7043a825 100644 (file)
@@ -755,7 +755,7 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
        return 1;
 
     notmuch_query_destroy (query);
        return 1;
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);
index d3b9246237c54ee2561eecf4cba24499d2577d4e..02b563caae2dcbd5d52d223cf3ef6db4c2739d88 100644 (file)
@@ -192,7 +192,7 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
     if (line)
        free (line);
 
     if (line)
        free (line);
 
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
     if (input != stdin)
        fclose (input);
 
     if (input != stdin)
        fclose (input);
 
index 1cc843075ec53b9d2ac0e973448c85422121adde..7dfd270e2019c651d6738a04e2cca7766a92bff7 100644 (file)
@@ -545,7 +545,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[])
     }
 
     notmuch_query_destroy (query);
     }
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     return ret;
 }
 
     return ret;
 }
index da4a797fbf1e9ed7901301a7c1cb0f3895c3d16e..3b6667c4bdbd5d411fc35dabbe40bce8bc74d19b 100644 (file)
@@ -1117,7 +1117,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
     }
 
     notmuch_query_destroy (query);
     }
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);
index 05feed3e97a461f7201ca0b2d0664cc5e3743586..bd56fd14a4699b74f5567f6ac0e3d4284a49600e 100644 (file)
@@ -238,7 +238,7 @@ notmuch_tag_command (void *ctx, int argc, char *argv[])
 
     ret = tag_query (ctx, notmuch, query_string, tag_ops, synchronize_flags);
 
 
     ret = tag_query (ctx, notmuch, query_string, tag_ops, synchronize_flags);
 
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     return ret;
 }
 
     return ret;
 }