]> git.cworth.org Git - notmuch/commitdiff
CLI: add missing file notmuch-client-init
authorDavid Bremner <david@tethera.net>
Sat, 15 May 2021 11:14:37 +0000 (08:14 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 15 May 2021 11:14:37 +0000 (08:14 -0300)
This file should have been created in commit 5a8d174f, but wasn't.

notmuch-client-init.c [new file with mode: 0644]

diff --git a/notmuch-client-init.c b/notmuch-client-init.c
new file mode 100644 (file)
index 0000000..60db6ba
--- /dev/null
@@ -0,0 +1,18 @@
+#include "notmuch-client.h"
+#include "gmime-filter-reply.h"
+
+/* Caller is responsible for only calling this once */
+
+void
+notmuch_client_init (void)
+{
+#if ! GLIB_CHECK_VERSION (2, 35, 1)
+    g_type_init ();
+#endif
+
+    g_mime_init ();
+
+    g_mime_filter_reply_module_init ();
+
+    talloc_enable_null_tracking ();
+}