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.
66 lines
1.5 KiB
66 lines
1.5 KiB
#ifndef MODEL_H
|
|
#define MODEL_H
|
|
#include "ubl-utils.h"
|
|
#include "philos_utils.h"
|
|
#include "vector.h"
|
|
#include "../ubl-strings.h"
|
|
typedef struct{
|
|
char* type_arr;
|
|
int id;
|
|
char* quota;
|
|
char* size_memory;
|
|
char* UNIX_file;
|
|
char* files;
|
|
vector actors;
|
|
size_t actors_size;
|
|
char* loaded_keys;
|
|
size_t soft_restriction_size;
|
|
size_t soft_restriction_file;
|
|
size_t severe_limitation_size;
|
|
size_t severe_limitation_file;
|
|
size_t deferring_size;
|
|
size_t deferring_file;
|
|
|
|
int size_memory_pow;
|
|
int soft_restriction_size_pow;
|
|
int severe_limitation_size_pow;
|
|
char* device;
|
|
size_t size;
|
|
|
|
} config_u_g_p;
|
|
|
|
typedef struct {
|
|
vector v_general;
|
|
vector v_user;
|
|
vector v_group;
|
|
vector v_project;
|
|
vector v_disk_status;
|
|
vector v_remove;
|
|
int flag_set_data;
|
|
int flag_save;
|
|
int flag_load;
|
|
int count_remove;
|
|
int flag_not_data;
|
|
} config_all;
|
|
typedef struct{
|
|
char* device;
|
|
int status;
|
|
} disk_status;
|
|
|
|
typedef struct{
|
|
int flag_status;
|
|
int size;
|
|
} config_general;
|
|
|
|
typedef struct{
|
|
int flag_load;
|
|
} config_gui;
|
|
|
|
char* wrapper_str_time(size_t seconds);
|
|
void model_null_str_writing(config_u_g_p* _config);
|
|
void model_clear_cfg(config_u_g_p* _config);
|
|
void model_array_size_memory();
|
|
char* format_actors(vector* vec_actors);
|
|
int fill_tree_view_user_group(config_all* all_config, char* disk, hotebook* widget,char* str_fill , int flag_gui_add);
|
|
int fill_tree_view_project(config_all* all_config, hotebook* widget, char* str_fill , int flag_gui_add);
|
|
#endif |