purple: work around broken dbus-server.h
[siplcs.git] / src / core / sipe-ews-autodiscover.h
blob715a2fa41c2f710467cbd36b96e431fe581b39e4
1 /**
2 * @file sipe-ews-autodiscover.h
4 * pidgin-sipe
6 * Copyright (C) 2013 SIPE Project <http://sipe.sourceforge.net/>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 /* Forward declarations */
25 struct sipe_core_private;
27 /* EWS data determined by autodiscover */
28 struct sipe_ews_autodiscover_data {
29 const gchar *as_url;
30 const gchar *ews_url;
31 const gchar *legacy_dn;
32 const gchar *oab_url;
33 const gchar *oof_url;
36 /**
38 * EWS autodiscover callback
40 * @param sipe_private SIPE core private data
41 * @param ews_data EWS autodiscover data (NULL when failed/aborted)
42 * @param callback_data callback data
44 typedef void (sipe_ews_autodiscover_callback)(struct sipe_core_private *sipe_private,
45 const struct sipe_ews_autodiscover_data *ews_data,
46 gpointer callback_data);
48 /**
49 * Trigger EWS autodiscover
51 * @param sipe_private SIPE core private data
52 * @param callback callback function
53 * @param callback_data callback data
55 void sipe_ews_autodiscover_start(struct sipe_core_private *sipe_private,
56 sipe_ews_autodiscover_callback *callback,
57 gpointer callback_data);
59 /**
60 * Initialize EWS autodiscover data
62 * @param sipe_private SIPE core private data
64 void sipe_ews_autodiscover_init(struct sipe_core_private *sipe_private);
66 /**
67 * Free EWS autodiscover data
69 * @param sipe_private SIPE core private data
71 void sipe_ews_autodiscover_free(struct sipe_core_private *sipe_private);