telepathy: implement sipe_backend_dnsquery_*
[siplcs.git] / src / core / sipe-webticket.h
blobad627be831731d98597c3097a775528e9aec2607
1 /**
2 * @file sipe-webticket.h
4 * pidgin-sipe
6 * Copyright (C) 2011-12 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
25 * Interface dependencies:
27 * <glib.h>
30 /* Forward declarations */
31 struct sipe_core_private;
32 struct sipe_svc_session;
34 /**
35 * Web Ticket callback
37 * @param sipe_private SIPE core private data
38 * @param base_uri Web Service base URI
39 * @param auth_uri Web Service auth. URI (NULL when request aborted)
40 * @param wsse_security Web Ticket XML fragment (NULL when request failed)
41 * @param callback_data callback data
43 typedef void (sipe_webticket_callback)(struct sipe_core_private *sipe_private,
44 const gchar *base_uri,
45 const gchar *auth_uri,
46 const gchar *wsse_security,
47 gpointer callback_data);
49 /**
50 * Request a Web Ticket for Web Service URI
52 * @param sipe_private SIPE core private data
53 * @param base_uri Web Service base URI
54 * @param port_name Web Service authentication port name
55 * @param callback callback function
56 * @param callback_data callback data
57 * @return @c TRUE if web ticket fetch was triggered
59 gboolean sipe_webticket_request(struct sipe_core_private *sipe_private,
60 struct sipe_svc_session *session,
61 const gchar *base_uri,
62 const gchar *port_name,
63 sipe_webticket_callback *callback,
64 gpointer callback_data);