Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | is_operator(c) ((c) == '|' || (c) == '&' || (c) == '!') |
#define | is_separator(c) (is_operator(c) || (c) == '(' || (c) == ')') |
Functions | |
void | strfilter__delete (struct strfilter *self) |
struct strfilter * | strfilter__new (const char *rules, const char **err) |
bool | strfilter__compare (struct strfilter *self, const char *str) |
Definition at line 10 of file strfilter.c.
#define is_separator | ( | c | ) | (is_operator(c) || (c) == '(' || (c) == ')') |
Definition at line 11 of file strfilter.c.
strfilter__compare - compare given string and a string filter : String filter : target string
Compare and . Return true if the str match the rule
Definition at line 194 of file strfilter.c.
strfilter__delete - delete a string filter : String filter to delete
Delete .
Definition at line 24 of file strfilter.c.
strfilter__new - Create a new string filter : Filter rule, which is a combination of glob expressions. : Pointer which points an error detected on
Parse and return new strfilter. Return NULL if an error detected. In that case, * will indicate where it is detected, and * is NULL if a memory allocation is failed.
Definition at line 155 of file strfilter.c.