refactor mask_ctx_parse_maskfile()

This commit is contained in:
jsteube
2016-09-27 20:02:12 +02:00
parent c71f1bfb0c
commit 814206801a
4 changed files with 80 additions and 67 deletions
+1 -1
View File
@@ -41,6 +41,6 @@ void sp_stretch_root (hcstat_table_t *in, hcstat_table_t *out);
int mask_ctx_init (mask_ctx_t *mask_ctx, const user_options_t *user_options, const user_options_extra_t *user_options_extra, const folder_config_t *folder_config, const restore_ctx_t *restore_ctx, const hashconfig_t *hashconfig);
void mask_ctx_destroy (mask_ctx_t *mask_ctx);
void mask_ctx_parse_maskfile (mask_ctx_t *mask_ctx, user_options_t *user_options, const hashconfig_t *hashconfig);
int mask_ctx_parse_maskfile (mask_ctx_t *mask_ctx, user_options_t *user_options, const hashconfig_t *hashconfig);
#endif // _MPSP_H
+9
View File
@@ -817,6 +817,13 @@ typedef struct
} cs_t;
typedef struct
{
char mf_buf[0x100];
int mf_len;
} mf_t;
typedef struct
{
u32 key;
@@ -1172,6 +1179,8 @@ typedef struct
char *mask;
mf_t *mfs;
} mask_ctx_t;
typedef struct