From 833fd7ca04ae1e746db1feafae3bae1bbf4a10c3 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 21 Jun 2010 15:19:50 +0100 Subject: Added sha1 from gnulib. Also filled out _np_state_generate_key() --- lib/utils_base.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/utils_base.h') diff --git a/lib/utils_base.h b/lib/utils_base.h index 8f2f6649..0037b7b5 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h @@ -2,6 +2,7 @@ #define _UTILS_BASE_ /* Header file for nagios plugins utils_base.c */ +#include "sha1.h" /* This file holds header information for thresholds - use this in preference to individual plugin logic */ @@ -50,7 +51,8 @@ typedef struct state_key_struct { typedef struct np_struct { char *plugin_name; state_key *state; - char **expanded_argv; + int argc; + char **argv; } nagios_plugin; range *parse_range_string (char *); @@ -97,7 +99,7 @@ void np_enable_state(char *, int); state_data *np_state_read(); void np_state_write_string(time_t, char *); -void np_init(char *); +void np_init(char *, int argc, char **argv); void np_cleanup(); #endif /* _UTILS_BASE_ */ -- cgit v1.2.3-74-g34f1