I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserverui / libedataserverui-private.c
blob83cb41459dce16c50de390a6ee6018d3465c8af2
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2018 Red Hat, Inc. (www.redhat.com)
5 * This library is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12 * for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 #include "evolution-data-server-config.h"
20 #include <glib.h>
22 #include "libedataserver/libedataserver.h"
23 #include "libedataserver/libedataserver-private.h"
25 #include "libedataserverui-private.h"
28 * _libedataserverui_load_modules:
30 * Usually called in a GObject::constructed() method to ensure
31 * the modules from the UI module directories are loaded.
33 * Since: 3.30
34 **/
35 void
36 _libedataserverui_load_modules (void)
38 static gboolean modules_loaded = FALSE;
40 /* Load modules only once. */
41 if (!modules_loaded) {
42 GList *module_types;
44 modules_loaded = TRUE;
46 module_types = e_module_load_all_in_directory (E_DATA_SERVER_UIMODULEDIR);
47 g_list_free_full (module_types, (GDestroyNotify) g_type_module_unuse);