added: a new mount type: static

some path in winix can be redirected to a specified static directory


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@738 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-06-14 23:45:42 +00:00
parent fb4742e165
commit c49c35cfbd
15 changed files with 355 additions and 31 deletions

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2009-2010, Tomasz Sowa
* Copyright (c) 2009-2011, Tomasz Sowa
* All rights reserved.
*
*/
@@ -28,6 +28,9 @@ class Mounts
{
public:
void SkipStaticDirs(bool skip);
/*
mount point's types
*/
@@ -37,6 +40,7 @@ public:
// id of a specific mount type (the id is always valid)
int MountTypeCms() { return mount_type_cms; }
int MountTypeStatic() { return mount_type_static; }
// return -1 if there is no such a mount type
// or index otherwhise
@@ -72,7 +76,8 @@ public:
int MountParMkdirOn() { return mount_par_mkdir_on; }
int MountParApp() { return mount_par_app; }
int MountParHtmlTemplate() { return mount_par_html_template; }
int MountParStatic() { return mount_par_static; }
int MountParCss() { return mount_par_css; }
void SetDirs(Dirs * pdirs);
void SetDb(Db * pdb);
@@ -103,6 +108,8 @@ private:
Dirs * dirs;
Cur * cur;
bool skip_static;
Mount empty_mount;
const std::wstring empty_str;
@@ -111,6 +118,7 @@ private:
std::vector<std::wstring> mount_type_tab;
int mount_type_cms;
int mount_type_static;
// simplefs
// hashfs
@@ -131,6 +139,8 @@ private:
int mount_par_mkdir_on;
int mount_par_app;
int mount_par_html_template;
int mount_par_static;
int mount_par_css;
MountTab mount_tab;