summaryrefslogtreecommitdiff
path: root/daemon/gvfskeyring.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-18 10:46:03 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-02-18 10:46:03 +0000
commit350c0216dccf49ea9adc20cfaa9484a0d6fb93e0 (patch)
tree9159ae744e5ea2a85ff7b955682272c9d08d1ff0 /daemon/gvfskeyring.h
parent98ee2150136db7720e531c8d84700f6b912e8c9a (diff)
downloadgvfs-350c0216dccf49ea9adc20cfaa9484a0d6fb93e0.tar.gz
Detect gnome-keyring
2008-02-18 Alexander Larsson <alexl@redhat.com> * configure.ac: Detect gnome-keyring * common/gmountsource.[ch]: Add password out to ask_password * daemon/Makefile.am: * daemon/gvfskeyring.[ch]: Helper code for keyring support * daemon/gvfsbackendsftp.c: Add keyring support * daemon/gvfsbackenddav.c: * daemon/gvfsbackendsmb.c: Update to api changes This is the initial work on keyring support (#511517) Patch from Carlos Garcia Campos svn path=/trunk/; revision=1293
Diffstat (limited to 'daemon/gvfskeyring.h')
-rw-r--r--daemon/gvfskeyring.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/daemon/gvfskeyring.h b/daemon/gvfskeyring.h
new file mode 100644
index 00000000..f9f72042
--- /dev/null
+++ b/daemon/gvfskeyring.h
@@ -0,0 +1,47 @@
+/* GIO - GLib Input, Output and Streaming Library
+ *
+ * Copyright (C) 2008 Carlos Garcia Campos
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author: Carlos Garcia Campos <carlosgc@gnome.org>
+ */
+
+#ifndef __G_VFS_KEYRING_H__
+#define __G_VFS_KEYRING_H__
+
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+gboolean g_vfs_keyring_is_available (void);
+gboolean g_vfs_keyring_lookup_password (const gchar *username,
+ const gchar *host,
+ const gchar *domain,
+ const gchar *protocol,
+ gchar **username_out,
+ gchar **domain_out,
+ gchar **password);
+gboolean g_vfs_keyring_save_password (const gchar *username,
+ const gchar *host,
+ const gchar *domain,
+ const gchar *protocol,
+ const gchar *password,
+ GPasswordSave flags);
+
+G_END_DECLS
+
+#endif /* __G_VFS_KEYRING_H__ */