summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsera.com>2010-06-21 14:19:50 (GMT)
committerTon Voon <ton.voon@opsera.com>2010-06-21 14:19:50 (GMT)
commit833fd7ca04ae1e746db1feafae3bae1bbf4a10c3 (patch)
tree0b184a88181177e20a68bdf7f0e3fdf87f793399 /lib/utils_base.h
parentb190391c76f86a3a513af7b07207f96b7553dd96 (diff)
downloadmonitoring-plugins-833fd7ca04ae1e746db1feafae3bae1bbf4a10c3.tar.gz
Added sha1 from gnulib. Also filled out _np_state_generate_key()
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r--lib/utils_base.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h
index 8f2f664..0037b7b 100644
--- a/lib/utils_base.h
+++ b/lib/utils_base.h
@@ -2,6 +2,7 @@
2#define _UTILS_BASE_ 2#define _UTILS_BASE_
3/* Header file for nagios plugins utils_base.c */ 3/* Header file for nagios plugins utils_base.c */
4 4
5#include "sha1.h"
5 6
6/* This file holds header information for thresholds - use this in preference to 7/* This file holds header information for thresholds - use this in preference to
7 individual plugin logic */ 8 individual plugin logic */
@@ -50,7 +51,8 @@ typedef struct state_key_struct {
50typedef struct np_struct { 51typedef struct np_struct {
51 char *plugin_name; 52 char *plugin_name;
52 state_key *state; 53 state_key *state;
53 char **expanded_argv; 54 int argc;
55 char **argv;
54 } nagios_plugin; 56 } nagios_plugin;
55 57
56range *parse_range_string (char *); 58range *parse_range_string (char *);
@@ -97,7 +99,7 @@ void np_enable_state(char *, int);
97state_data *np_state_read(); 99state_data *np_state_read();
98void np_state_write_string(time_t, char *); 100void np_state_write_string(time_t, char *);
99 101
100void np_init(char *); 102void np_init(char *, int argc, char **argv);
101void np_cleanup(); 103void np_cleanup();
102 104
103#endif /* _UTILS_BASE_ */ 105#endif /* _UTILS_BASE_ */