]> git.notmuchmail.org Git - notmuch/blob - lib/init.cc
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / lib / init.cc
1 #include "notmuch-private.h"
2
3 #include <mutex>
4
5 static void do_init ()
6 {
7     /* Initialize the GLib type system and threads */
8 #if ! GLIB_CHECK_VERSION (2, 35, 1)
9     g_type_init ();
10 #endif
11
12     g_mime_init ();
13     _notmuch_filter_init ();
14 }
15
16 void
17 _notmuch_init ()
18 {
19     static std::once_flag initialized;
20     std::call_once (initialized, do_init);
21 }