X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-client-init.c;fp=notmuch-client-init.c;h=60db6ba4a2377df243afa0a116cea55f8b132a4f;hp=0000000000000000000000000000000000000000;hb=ccd2ef38718efa3c9268eb68ad54454609e4451c;hpb=121f9ddad3eecfb23babccbe84280381e5f5a283 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 (); +}