2 * Copyright (C) 2010 Collabora Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef __EMPATHY_KEYRING_H__
20 #define __EMPATHY_KEYRING_H__
24 #include <telepathy-glib/account.h>
28 void empathy_keyring_get_password_async (TpAccount *account,
29 GAsyncReadyCallback callback, gpointer user_data);
31 const gchar * empathy_keyring_get_password_finish (TpAccount *account,
32 GAsyncResult *result, GError **error);
34 void empathy_keyring_set_password_async (TpAccount *account,
35 const gchar *password, GAsyncReadyCallback callback,
38 gboolean empathy_keyring_set_password_finish (TpAccount *account,
39 GAsyncResult *result, GError **error);
41 void empathy_keyring_delete_password_async (TpAccount *account,
42 GAsyncReadyCallback callback, gpointer user_data);
44 gboolean empathy_keyring_delete_password_finish (TpAccount *account,
45 GAsyncResult *result, GError **error);
49 #endif /* __EMPATHY_KEYRING_H__ */