Debian Codegraph @

src/EWS/common/e-ews-connection-utils.h

raw
1 /*
2 * SPDX-FileCopyrightText: (C) 2013 Red Hat, Inc. (www.redhat.com)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef E_EWS_CONNECTION_UTILS_H
7 #define E_EWS_CONNECTION_UTILS_H
8
9 #include <glib.h>
10 #include <common/e-ews-connection.h>
11
12 G_BEGIN_DECLS
13
14 #define E_EWS_CONNECTION_UTILS_CHECK_ELEMENT(element_name, expected_name) \
15 (e_ews_connection_utils_check_element (G_STRFUNC, (element_name), (expected_name)))
16
17 void e_ews_connection_utils_set_user_agent_header
18 (SoupMessage *message,
19 CamelEwsSettings *settings);
20 void e_ews_connection_utils_unref_in_thread (gpointer object);
21 gboolean e_ews_connection_utils_check_element (const gchar *function_name,
22 const gchar *element_name,
23 const gchar *expected_name);
24
25 void e_ews_connection_utils_force_off_ntlm_auth_check
26 (void);
27 gboolean e_ews_connection_utils_get_without_password
28 (CamelEwsSettings *ews_settings);
29 void e_ews_connection_utils_expired_password_to_error
30 (const gchar *service_url,
31 GError **error);
32 gboolean e_ews_connection_utils_check_x_ms_credential_headers
33 (SoupMessage *message,
34 gint *out_expire_in_days,
35 gboolean *out_expired,
36 gchar **out_service_url);
37
38 G_END_DECLS
39
40 #endif /* E_EWS_CONNECTION_UTILS_H */
41
42