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.
44 lines
1.3 KiB
44 lines
1.3 KiB
#include "model.h"
|
|
|
|
|
|
void model_clear_cfg(config_u_g_p* _config) {
|
|
free(_config->quota);
|
|
free(_config->size_memory);
|
|
free(_config->device);
|
|
free(_config->UNIX_file);
|
|
free(_config->files);
|
|
free(_config->actors);
|
|
free(_config->loaded_keys);
|
|
}
|
|
|
|
|
|
void model_tree_view_add(config_u_g_p* _config) {
|
|
model_null_str_writing(_config);
|
|
}
|
|
|
|
void model_null_str_writing(config_u_g_p* _config) {
|
|
_config->quota = yon_char_new(empty_str);
|
|
_config->size_memory = yon_char_new(empty_str);
|
|
_config->device = yon_char_new(empty_str);
|
|
_config->UNIX_file = yon_char_new(empty_str);
|
|
_config->files = yon_char_new(empty_str);
|
|
_config->actors = yon_char_new(empty_str);
|
|
_config->loaded_keys = yon_char_new(empty_str);
|
|
_config->type_arr = yon_char_new(empty_str);
|
|
_config->id = -3;
|
|
_config->status_set = -3;
|
|
_config->soft_restriction_size = -3;
|
|
_config->soft_restriction_file = -3;
|
|
_config->severe_limitation_size = -3;
|
|
_config->severe_limitation_file = -3;
|
|
_config->deferring_size = -3;
|
|
_config->deferring_file = -3;
|
|
_config->size_memory_pow = -3;
|
|
_config->soft_restriction_size_pow = -3;
|
|
_config->soft_restriction_file_pow = -3;
|
|
_config->severe_limitation_size_pow = -3;
|
|
_config->severe_limitation_file_pow = -3;
|
|
}
|
|
|
|
|