summaryrefslogtreecommitdiff
path: root/common/vfs_types.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-28 17:10:07 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-28 17:10:07 +0100
commitda1cdfc3ada7109330a92955239bdc7981e95430 (patch)
treea816308895fd45de50a0dc06cada0c1b50b4ccfe /common/vfs_types.h
parentc4db474055a604156e1acf162991e625fd340fa5 (diff)
downloadtuxcmd-modules-0.6.54.tar.xz
Password callback support from all VFS modulesv0.6.54
Diffstat (limited to 'common/vfs_types.h')
-rw-r--r--common/vfs_types.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/vfs_types.h b/common/vfs_types.h
index 99334f9..aced4d3 100644
--- a/common/vfs_types.h
+++ b/common/vfs_types.h
@@ -37,7 +37,8 @@ typedef enum {
VFS_ASK_PASSWORD_NEED_DOMAIN = 1<<2,
VFS_ASK_PASSWORD_SAVING_SUPPORTED = 1<<3,
VFS_ASK_PASSWORD_ANONYMOUS_SUPPORTED = 1<<4,
- VFS_ASK_PASSWORD_SAVE_INTERNAL = 1<<15
+ VFS_ASK_PASSWORD_SAVE_INTERNAL = 1<<14,
+ VFS_ASK_PASSWORD_ARCHIVE_MODE = 1<<15
} TVFSAskPasswordFlags;
/* Compatible with gio/GPasswordSave */
@@ -49,9 +50,15 @@ typedef enum {
typedef void (* TVFSLogFunc)(char *s);
-typedef int (* TVFSCopyCallBackFunc)(u_int64_t iPos, u_int64_t iMax, void *data);
typedef void *TVFSFileDes;
+
+/* Return FALSE to break the operation */
+typedef int (* TVFSProgressCallback)
+ (u_int64_t position,
+ u_int64_t max,
+ void *user_data);
+
/* Return index of the choice selected or negative number when dialog has been cancelled */
typedef void (* TVFSAskQuestionCallback)
(const char *message,
@@ -64,6 +71,7 @@ typedef int (* TVFSAskPasswordCallback)
(const char *message,
const char *default_user,
const char *default_domain,
+ const char *default_password,
TVFSAskPasswordFlags flags,
char **username,
char **password,