clsync
Loading...
Searching...
No Matches
rules.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int parse_rules_fromfile (struct ctx *ctx_p)
 
ruleaction_t rules_search_getperm (const char *fpath, mode_t st_mode, rule_t *rules_p, const ruleaction_t ruleaction, rule_t **rule_pp)
 Checks file path by rules' expressions (parsed from file)
 
ruleaction_t rules_getperm (const char *fpath, mode_t st_mode, struct rule *rules_p, ruleaction_t ruleactions)
 

Function Documentation

◆ parse_rules_fromfile()

int parse_rules_fromfile ( struct ctx * ctx_p)
extern

Definition at line 56 of file rules.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rules_getperm()

ruleaction_t rules_getperm ( const char * fpath,
mode_t st_mode,
struct rule * rules_p,
ruleaction_t ruleactions )
extern

Definition at line 403 of file rules.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rules_search_getperm()

ruleaction_t rules_search_getperm ( const char * fpath,
mode_t st_mode,
rule_t * rules_p,
const ruleaction_t ruleaction,
rule_t ** rule_pp )
extern

Checks file path by rules' expressions (parsed from file)

Parameters
[in]fpathPath to file of directory
[in]st_modest_mode received via *stat() functions
[in]rules_pPointer to start of rules array
[in]ruleactionOperaton ID (see ruleaction_t)
[in,out]rule_ppPointer to pointer to rule, where the last search ended. Next search will be started from the specified rule. Can be "NULL" to disable this feature.
Return values
permPermission bitmask

Definition at line 327 of file rules.c.

Here is the caller graph for this function: