From 016687cc49c811589951ebd064a86bdde1405866 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 30 Nov 2009 22:55:24 +0100 Subject: Foundation of VFS capabilities --- common/tuxcmd-vfs.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'common/tuxcmd-vfs.h') diff --git a/common/tuxcmd-vfs.h b/common/tuxcmd-vfs.h index 9689db2..2ced1b1 100644 --- a/common/tuxcmd-vfs.h +++ b/common/tuxcmd-vfs.h @@ -34,13 +34,13 @@ typedef int TVFSResult; /* Compatible with gio/GAskPasswordFlags */ typedef enum { - VFS_ASK_PASSWORD_NEED_PASSWORD = 1<<0, - VFS_ASK_PASSWORD_NEED_USERNAME = 1<<1, - 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<<14, - VFS_ASK_PASSWORD_ARCHIVE_MODE = 1<<15 + VFS_ASK_PASSWORD_NEED_PASSWORD = 1 << 0, + VFS_ASK_PASSWORD_NEED_USERNAME = 1 << 1, + 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 << 14, + VFS_ASK_PASSWORD_ARCHIVE_MODE = 1 << 15 } TVFSAskPasswordFlags; /* Compatible with gio/GPasswordSave */ @@ -50,6 +50,14 @@ typedef enum { VFS_PASSWORD_SAVE_PERMANENTLY } TVFSPasswordSave; +/* Module capability flags */ +typedef enum { + VFS_CAP_HANDLES_MULTIPLE_REQUESTS = 1 << 0, /* Multiple (background) operations; usually unsuitable for archives */ + VFS_CAP_CAN_BROWSE_NETWORK = 1 << 1, /* Can handle network:// URIs, scan network resources */ + VFS_CAP_CAN_CREATE_ARCHIVES = 1 << 2, /* Creating archives from scratch */ + VFS_CAP_ARCHIVE_STREAMING = 1 << 3 /* Streaming archive type, can't handle random requests */ +} TVFSModuleCapabilities; + typedef void (* TVFSLogFunc) (const char *s); typedef void * TVFSFileDes; -- cgit v1.2.3