From ccd2ef38718efa3c9268eb68ad54454609e4451c Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 15 May 2021 08:14:37 -0300 Subject: [PATCH] CLI: add missing file notmuch-client-init This file should have been created in commit 5a8d174f, but wasn't. --- notmuch-client-init.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 notmuch-client-init.c diff --git a/notmuch-client-init.c b/notmuch-client-init.c new file mode 100644 index 00000000..60db6ba4 --- /dev/null +++ b/notmuch-client-init.c @@ -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 (); +}