diff options
author | Jan Wagner <waja@cyconet.org> | 2023-10-17 13:39:37 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2023-10-17 13:39:37 +0200 |
commit | 2a047014385022c8dc06dad4da0428db14898689 (patch) | |
tree | 00abea46325decf0c72870ee8f9ec1472e8e5344 /lib/utils_disk.h | |
parent | f39211c26408af582121f519d89c8abf70e6d437 (diff) | |
parent | e23a75d954311b3be429a9020e4d317b89615ee7 (diff) | |
download | monitoring-plugins-2a047014385022c8dc06dad4da0428db14898689.tar.gz |
Merge branch 'master' of github.com:monitoring-plugins/monitoring-plugins
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r-- | lib/utils_disk.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h index 3b5a45f8..5b2caf23 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; |
@@ -33,12 +39,14 @@ struct parameter_list | |||
33 | }; | 39 | }; |
34 | 40 | ||
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 | bool np_find_name (struct name_list *list, const char *name); |
37 | int np_seen_name (struct name_list *list, const char *name); | 43 | bool 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); |
41 | 49 | ||
42 | int search_parameter_list (struct parameter_list *list, const char *name); | 50 | int search_parameter_list (struct parameter_list *list, const char *name); |
43 | void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, int exact); | 51 | void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, bool exact); |
44 | int np_regex_match_mount_entry (struct mount_entry* me, regex_t* re); | 52 | bool np_regex_match_mount_entry (struct mount_entry* me, regex_t* re); |