diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-12 19:30:20 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-12 19:30:20 (GMT) |
commit | 4edea20b86fb08209ffb38c77be2df1d3a373e82 (patch) | |
tree | cb53837ed7bd59ee53f83df6f50e01fa446ff399 /plugins/utils_disk.h | |
parent | ee03f1415acc9f4f8901593d9045244fbb3bbbb0 (diff) | |
download | monitoring-plugins-4edea20b86fb08209ffb38c77be2df1d3a373e82.tar.gz |
Moving parameter_list into utils_disk.h. Given list of mount points, can
now work out best match or exact match.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1448 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils_disk.h')
-rw-r--r-- | plugins/utils_disk.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/plugins/utils_disk.h b/plugins/utils_disk.h index f173c91..c1919fe 100644 --- a/plugins/utils_disk.h +++ b/plugins/utils_disk.h | |||
@@ -1,5 +1,6 @@ | |||
1 | /* Header file for utils_disk */ | 1 | /* Header file for utils_disk */ |
2 | 2 | ||
3 | #include "mountlist.h" | ||
3 | 4 | ||
4 | struct name_list | 5 | struct name_list |
5 | { | 6 | { |
@@ -7,6 +8,22 @@ struct name_list | |||
7 | struct name_list *next; | 8 | struct name_list *next; |
8 | }; | 9 | }; |
9 | 10 | ||
11 | struct parameter_list | ||
12 | { | ||
13 | char *name; | ||
14 | int found; | ||
15 | int found_len; | ||
16 | uintmax_t w_df; | ||
17 | uintmax_t c_df; | ||
18 | double w_dfp; | ||
19 | double c_dfp; | ||
20 | double w_idfp; | ||
21 | double c_idfp; | ||
22 | struct mount_entry *best_match; | ||
23 | struct parameter_list *name_next; | ||
24 | }; | ||
25 | |||
10 | void np_add_name (struct name_list **list, const char *name); | 26 | void np_add_name (struct name_list **list, const char *name); |
11 | int np_find_name (struct name_list *list, const char *name); | 27 | int np_find_name (struct name_list *list, const char *name); |
12 | 28 | void np_add_parameter(struct parameter_list **list, const char *name); | |
29 | int search_parameter_list (struct parameter_list *list, const char *name); | ||