added: new winix function: mount
displaying all mount points
changed: struct Cur has now 'mount' pointer
we should not use system->mounts.pmount now
(it will be removed in the future)
changed: all mount point parameters are now propagated to childs mount points
(if not defined there)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@745 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
41
functions/mount.cpp
Executable file
41
functions/mount.cpp
Executable file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2011, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "mount.h"
|
||||
#include "functions.h"
|
||||
|
||||
|
||||
|
||||
namespace Fun
|
||||
{
|
||||
|
||||
Mount::Mount()
|
||||
{
|
||||
fun.url = L"mount";
|
||||
}
|
||||
|
||||
|
||||
bool Mount::HasAccess()
|
||||
{
|
||||
if( cur->session->puser && cur->session->puser->super_user )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void Mount::MakeGet()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user