diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-13 17:09:29 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-13 17:09:29 (GMT) |
commit | b6d3acf5e3f685d6048905d4bef84ebfbb9f4815 (patch) | |
tree | 8a4f5e2f2f28976f80ba9b5e68dd19ba917e35f4 /lib/utils_disk.h | |
parent | 41ebe4b6d9c36205577a336ae6f81567a0321267 (diff) | |
parent | bf70f5f847e3407af572d1768cca747af270b993 (diff) | |
download | monitoring-plugins-b6d3acf5e3f685d6048905d4bef84ebfbb9f4815.tar.gz |
Merge branch 'master' into check_dhcp_rogue_detectionrefs/pull/1906/head
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r-- | lib/utils_disk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h index 3b5a45f..6b83ac7 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 | ||
13 | struct regex_list | ||
14 | { | ||
15 | regex_t regex; | ||
16 | struct regex_list *next; | ||
17 | }; | ||
18 | |||
13 | struct parameter_list | 19 | struct parameter_list |
14 | { | 20 | { |
15 | char *name; | 21 | char *name; |
@@ -35,6 +41,8 @@ struct parameter_list | |||
35 | void np_add_name (struct name_list **list, const char *name); | 41 | void np_add_name (struct name_list **list, const char *name); |
36 | int np_find_name (struct name_list *list, const char *name); | 42 | int np_find_name (struct name_list *list, const char *name); |
37 | int np_seen_name (struct name_list *list, const char *name); | 43 | int np_seen_name (struct name_list *list, const char *name); |
44 | int np_add_regex (struct regex_list **list, const char *regex, int cflags); | ||
45 | bool np_find_regmatch (struct regex_list *list, const char *name); | ||
38 | struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); | 46 | struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); |
39 | struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); | 47 | struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name); |
40 | struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); | 48 | struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev); |