signon-auth-session.h | signon-auth-session.h | |||
---|---|---|---|---|
/* vi: set et sw=4 ts=4 cino=t0,(0: */ | /* vi: set et sw=4 ts=4 cino=t0,(0: */ | |||
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | |||
/* | /* | |||
* This file is part of libsignon-glib | * This file is part of libsignon-glib | |||
* | * | |||
* Copyright (C) 2009-2010 Nokia Corporation. | * Copyright (C) 2009-2010 Nokia Corporation. | |||
* Copyright (C) 2012 Canonical Ltd. | ||||
* | * | |||
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com> | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public License | * modify it under the terms of the GNU Lesser General Public License | |||
* version 2.1 as published by the Free Software Foundation. | * version 2.1 as published by the Free Software Foundation. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, but | * This library is distributed in the hope that it will be useful, but | |||
* WITHOUT ANY WARRANTY; without even the implied warranty of | * WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |||
* 02110-1301 USA | * 02110-1301 USA | |||
*/ | */ | |||
#ifndef SIGNONAUTHSESSION_H_ | #ifndef SIGNONAUTHSESSION_H_ | |||
#define SIGNONAUTHSESSION_H_ | #define SIGNONAUTHSESSION_H_ | |||
#include <gio/gio.h> | ||||
#include <glib-object.h> | #include <glib-object.h> | |||
#include <libsignon-glib/signon-types.h> | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/* | /* | |||
* Useful session data keys | * Useful session data keys | |||
*/ | */ | |||
/** | /** | |||
* SIGNON_SESSION_DATA_USERNAME: | * SIGNON_SESSION_DATA_USERNAME: | |||
* | * | |||
* Username. | * Username. | |||
skipping to change at line 162 | skipping to change at line 165 | |||
G_GNUC_DEPRECATED | G_GNUC_DEPRECATED | |||
typedef SignonAuthSessionQueryAvailableMechanismsCb | typedef SignonAuthSessionQueryAvailableMechanismsCb | |||
SignonAuthSessionQueryAvailableMethodsCb; | SignonAuthSessionQueryAvailableMethodsCb; | |||
void signon_auth_session_query_available_mechanisms(SignonAuthSession *self , | void signon_auth_session_query_available_mechanisms(SignonAuthSession *self , | |||
const gchar **wanted_me chanisms, | const gchar **wanted_me chanisms, | |||
SignonAuthSessionQueryA vailableMechanismsCb cb, | SignonAuthSessionQueryA vailableMechanismsCb cb, | |||
gpointer user_data); | gpointer user_data); | |||
#ifndef SIGNON_DISABLE_DEPRECATED | ||||
typedef void (*SignonAuthSessionProcessCb) (SignonAuthSession *self, | typedef void (*SignonAuthSessionProcessCb) (SignonAuthSession *self, | |||
GHashTable *session_data, | GHashTable *session_data, | |||
const GError *error, | const GError *error, | |||
gpointer user_data); | gpointer user_data); | |||
SIGNON_DEPRECATED_FOR(signon_auth_session_process_async) | ||||
void signon_auth_session_process(SignonAuthSession *self, | void signon_auth_session_process(SignonAuthSession *self, | |||
const GHashTable *session_data, | const GHashTable *session_data, | |||
const gchar *mechanism, | const gchar *mechanism, | |||
SignonAuthSessionProcessCb cb, | SignonAuthSessionProcessCb cb, | |||
gpointer user_data); | gpointer user_data); | |||
#endif | ||||
void signon_auth_session_process_async (SignonAuthSession *self, | ||||
GVariant *session_data, | ||||
const gchar *mechanism, | ||||
GCancellable *cancellable, | ||||
GAsyncReadyCallback callback, | ||||
gpointer user_data); | ||||
GVariant *signon_auth_session_process_finish (SignonAuthSession *self, | ||||
GAsyncResult *res, | ||||
GError **error); | ||||
void signon_auth_session_cancel(SignonAuthSession *self); | void signon_auth_session_cancel(SignonAuthSession *self); | |||
G_END_DECLS | G_END_DECLS | |||
#endif //SIGNONAUTHSESSIONIMPL_H_ | #endif //SIGNONAUTHSESSIONIMPL_H_ | |||
End of changes. 7 change blocks. | ||||
1 lines changed or deleted | 16 lines changed or added | |||