winix/templates/mount.cpp

57 lines
735 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
namespace TemplatesFunctions
{
void mount_page_is(Info & i)
{
i.res = system->mounts.pmount->IsArg(Mount::par_page, i.par);
}
void mount_thread_is(Info & i)
{
i.res = system->mounts.pmount->IsArg(Mount::par_thread, i.par);
}
void mount_type_is_thread(Info & i)
{
i.res = system->mounts.pmount->type == Mount::thread;
}
void mount_type_is_ticket(Info & i)
{
i.res = system->mounts.pmount->type == Mount::ticket;
}
void mount_type_is_cms(Info & i)
{
i.res = system->mounts.pmount->type == Mount::cms;
}
} // namespace TemplatesFunctions