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.
ubl-settings-diskquota/source/model/model.h

63 lines
1.2 KiB

#ifndef MODEL_H
#define MODEL_H
#include "ubl-utils.h"
#include "../ubl-strings.h"
#include "philos_utils.h"
static char** array_size_pow = NULL;
typedef struct{
int* status;
char** type_arr;
int* id;
char** name;
char** quota;
char** size_memory;
char** UNIX_file;
char** files;
char** actors;
int* number;
int* status_set;
char** loaded_keys;
/*
0 = not set
1 = del;
2 = update
*/
char** delete_key;
int* soft_restriction_size;
int* soft_restriction_file;
int* severe_limitation_size;
int* severe_limitation_file;
int* deferring_size;
int* deferring_file;
int* size_memory_pow;
int* soft_restriction_size_pow;
int* soft_restriction_file_pow;
int* severe_limitation_size_pow;
int* severe_limitation_file_pow;
int* deferring_size_pow;
int* deferring_file_pow;
char** device;
size_t size;
int flag_set_data;
int flag_save;
int flag_load;
} config_u_g_p;
typedef struct{
int *flag_status;
int size;
} config_general;
typedef struct{
int flag_load;
} config_gui;
void model_null_str_writing(config_u_g_p* _config, int index);
void model_clear_cfg(config_u_g_p* _config);
#endif