summaryrefslogtreecommitdiffstats
path: root/plugins/utils_disk.h
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-07-12 19:30:20 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-07-12 19:30:20 (GMT)
commit4edea20b86fb08209ffb38c77be2df1d3a373e82 (patch)
treecb53837ed7bd59ee53f83df6f50e01fa446ff399 /plugins/utils_disk.h
parentee03f1415acc9f4f8901593d9045244fbb3bbbb0 (diff)
downloadmonitoring-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.h19
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
4struct name_list 5struct 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
11struct 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
10void np_add_name (struct name_list **list, const char *name); 26void np_add_name (struct name_list **list, const char *name);
11int np_find_name (struct name_list *list, const char *name); 27int np_find_name (struct name_list *list, const char *name);
12 28void np_add_parameter(struct parameter_list **list, const char *name);
29int search_parameter_list (struct parameter_list *list, const char *name);