2 * empathy-auth-goa.h - Header for Goa SASL authentication
3 * Copyright (C) 2011 Collabora Ltd.
4 * @author Xavier Claessens <xavier.claessens@collabora.co.uk>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __EMPATHY_GOA_AUTH_HANDLER_H__
22 #define __EMPATHY_GOA_AUTH_HANDLER_H__
24 #include <telepathy-glib/telepathy-glib.h>
28 typedef struct _EmpathyGoaAuthHandler EmpathyGoaAuthHandler
;
29 typedef struct _EmpathyGoaAuthHandlerClass EmpathyGoaAuthHandlerClass
;
30 typedef struct _EmpathyGoaAuthHandlerPriv EmpathyGoaAuthHandlerPriv
;
32 struct _EmpathyGoaAuthHandlerClass
{
33 GObjectClass parent_class
;
36 struct _EmpathyGoaAuthHandler
{
38 EmpathyGoaAuthHandlerPriv
*priv
;
41 GType
empathy_goa_auth_handler_get_type (void);
44 #define EMPATHY_TYPE_GOA_AUTH_HANDLER \
45 (empathy_goa_auth_handler_get_type ())
46 #define EMPATHY_GOA_AUTH_HANDLER(obj) \
47 (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_GOA_AUTH_HANDLER, \
48 EmpathyGoaAuthHandler))
49 #define EMPATHY_GOA_AUTH_HANDLER_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_GOA_AUTH_HANDLER, \
51 EmpathyGoaAuthHandlerClass))
52 #define EMPATHY_IS_GOA_AUTH_HANDLER(obj) \
53 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_GOA_AUTH_HANDLER))
54 #define EMPATHY_IS_GOA_AUTH_HANDLER_CLASS(klass) \
55 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_GOA_AUTH_HANDLER))
56 #define EMPATHY_GOA_AUTH_HANDLER_GET_CLASS(obj) \
57 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_GOA_AUTH_HANDLER, \
58 EmpathyGoaAuthHandlerClass))
60 EmpathyGoaAuthHandler
*empathy_goa_auth_handler_new (void);
62 void empathy_goa_auth_handler_start (EmpathyGoaAuthHandler
*self
,
66 gboolean
empathy_goa_auth_handler_supports (EmpathyGoaAuthHandler
*self
,
72 #endif /* #ifndef __EMPATHY_GOA_AUTH_HANDLER_H__*/