goa: Add missing linker flag (for real).
[platform/upstream/evolution-data-server.git] / modules / gnome-online-accounts / goaewsclient.h
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 /*
3  * Copyright (C) 2012 Red Hat, Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General
16  * Public License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Author: Debarshi Ray <debarshir@gnome.org>
21  */
22
23 /* XXX This is a rather hacked up version of GoaEwsClient from
24  *     GNOME Online Accounts which returns the discovered URLs. */
25
26 #ifndef __GOA_EWS_CLIENT_H__
27 #define __GOA_EWS_CLIENT_H__
28
29 /* XXX Yeah, yeah... */
30 #define GOA_API_IS_SUBJECT_TO_CHANGE
31
32 #include <goa/goa.h>
33
34 G_BEGIN_DECLS
35
36 void            goa_ews_autodiscover            (GoaObject *goa_object,
37                                                  GCancellable *cancellable,
38                                                  GAsyncReadyCallback  callback,
39                                                  gpointer user_data);
40 gboolean        goa_ews_autodiscover_finish     (GoaObject *goa_object,
41                                                  GAsyncResult *result,
42                                                  gchar **out_as_url,
43                                                  gchar **out_oab_url,
44                                                  GError **error);
45 gboolean        goa_ews_autodiscover_sync       (GoaObject *goa_object,
46                                                  gchar **out_as_url,
47                                                  gchar **out_oab_url,
48                                                  GCancellable *cancellable,
49                                                  GError **error);
50
51 G_END_DECLS
52
53 #endif /* __GOA_EWS_CLIENT_H__ */