summaryrefslogtreecommitdiffstats
path: root/lib/utils_disk.h
diff options
context:
space:
mode:
authordatamuc <m@rbfh.de>2023-10-06 11:01:01 +0200
committerGitHub <noreply@github.com>2023-10-06 11:01:01 +0200
commit5886cfbcb0f9650fc538efa7d825cc4015beb5bb (patch)
tree7168db8bc00b5a3c4308004e66735ebbf382eb27 /lib/utils_disk.h
parent1ad7e163fad45d33a44f398fb2416f1b9086469a (diff)
parentbe0e475339346907c86de5d797f0fab1e071f75c (diff)
downloadmonitoring-plugins-5886cfbcb0f9650fc538efa7d825cc4015beb5bb.tar.gz
Merge branch 'master' into merge-jitter
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r--lib/utils_disk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h
index 3b5a45f8..6b83ac74 100644
--- a/lib/utils_disk.h
+++ b/lib/utils_disk.h
@@ -10,6 +10,12 @@ struct name_list
10 struct name_list *next; 10 struct name_list *next;
11}; 11};
12 12
13struct regex_list
14{
15 regex_t regex;
16 struct regex_list *next;
17};
18
13struct parameter_list 19struct parameter_list
14{ 20{
15 char *name; 21 char *name;
@@ -35,6 +41,8 @@ struct parameter_list
35void np_add_name (struct name_list **list, const char *name); 41void np_add_name (struct name_list **list, const char *name);
36int np_find_name (struct name_list *list, const char *name); 42int np_find_name (struct name_list *list, const char *name);
37int np_seen_name (struct name_list *list, const char *name); 43int np_seen_name (struct name_list *list, const char *name);
44int np_add_regex (struct regex_list **list, const char *regex, int cflags);
45bool np_find_regmatch (struct regex_list *list, const char *name);
38struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); 46struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name);
39struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); 47struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name);
40struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); 48struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev);