Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
strfilter.h
Go to the documentation of this file.
1 #ifndef __PERF_STRFILTER_H
2 #define __PERF_STRFILTER_H
3 /* General purpose glob matching filter */
4 
5 #include <linux/list.h>
6 #include <stdbool.h>
7 
8 /* A node of string filter */
9 struct strfilter_node {
10  struct strfilter_node *l; /* Tree left branche (for &,|) */
11  struct strfilter_node *r; /* Tree right branche (for !,&,|) */
12  const char *p; /* Operator or rule */
13 };
14 
15 /* String filter */
16 struct strfilter {
18 };
19 
29 struct strfilter *strfilter__new(const char *rules, const char **err);
30 
38 bool strfilter__compare(struct strfilter *self, const char *str);
39 
46 void strfilter__delete(struct strfilter *self);
47 
48 #endif