1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright (C) 2008 Carlos Garcia Campos
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., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  * Author: Carlos Garcia Campos <carlosgc@gnome.org>
21  */
22 
23 #ifndef __G_VFS_KEYRING_H__
24 #define __G_VFS_KEYRING_H__
25 
26 #include <gio/gio.h>
27 
28 G_BEGIN_DECLS
29 
30 gboolean g_vfs_keyring_is_available    (void);
31 gboolean g_vfs_keyring_lookup_password (const gchar *username,
32 					const gchar *host,
33 					const gchar *domain,
34 					const gchar *protocol,
35 					const gchar *object,
36 					const gchar *authtype,
37 					guint32      port,
38 					gchar      **username_out,
39 					gchar      **domain_out,
40 					gchar      **password);
41 gboolean g_vfs_keyring_save_password   (const gchar  *username,
42 					const gchar  *host,
43 					const gchar  *domain,
44 					const gchar  *protocol,
45 					const gchar  *object,
46 					const gchar  *authtype,
47 					guint32       port,
48 					const gchar  *password,
49 					GPasswordSave flags);
50 
51 G_END_DECLS
52 
53 #endif /* __G_VFS_KEYRING_H__ */
54