You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
#ifndef MY_TYPE_H
|
|
#define MY_TYPE_H
|
|
|
|
#include "project_lib.h"
|
|
|
|
using namespace std;
|
|
|
|
typedef unsigned long max_num_T;
|
|
|
|
struct users_grups{
|
|
string name;
|
|
bool state;
|
|
max_num_T size_data;
|
|
max_num_T soft_limit_size;
|
|
max_num_T severe_restriction_size;
|
|
max_num_T postponement_size_brat;
|
|
max_num_T hard_limit_activation_time_size;
|
|
max_num_T file;
|
|
max_num_T soft_file_limitation;
|
|
max_num_T hard_file_restriction;
|
|
max_num_T postponement_hard_file_restriction;
|
|
max_num_T hard_limit_activation_time;
|
|
};
|
|
struct Mount {
|
|
std::string device;
|
|
std::string destination;
|
|
std::string fstype;
|
|
std::string options;
|
|
std::string dump;
|
|
std::string pass;
|
|
};
|
|
struct partition_cmd {
|
|
string device;
|
|
string cmd;
|
|
};
|
|
struct struct_quotas {
|
|
string device;
|
|
string cmd;
|
|
string type_quotas;
|
|
string name;
|
|
};
|
|
struct status_quotas {
|
|
bool user;
|
|
bool group;
|
|
bool project;
|
|
bool status;
|
|
};
|
|
typedef struct users_grups USER_GRUPS;
|
|
typedef map <string, string> map_str_str;
|
|
typedef map <string, string>* map_s_s_ptr;
|
|
typedef std::map<std::string, Mount> map_str_device;
|
|
#endif |