From: David Bremner Date: Sat, 15 May 2021 11:14:37 +0000 (-0300) Subject: CLI: add missing file notmuch-client-init X-Git-Tag: archive/debian/0.33_rc0-1~101 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=ccd2ef38718efa3c9268eb68ad54454609e4451c CLI: add missing file notmuch-client-init This file should have been created in commit 5a8d174f, but wasn't. --- 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 (); +}