summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r--lib/utils_base.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h
index 8fb114c2..f31299c4 100644
--- a/lib/utils_base.h
+++ b/lib/utils_base.h
@@ -9,7 +9,6 @@
9#include "./thresholds.h" 9#include "./thresholds.h"
10#include "states.h" 10#include "states.h"
11 11
12
13#ifndef USE_OPENSSL 12#ifndef USE_OPENSSL
14# include "sha256.h" 13# include "sha256.h"
15#endif 14#endif
@@ -27,25 +26,8 @@
27#define OUTSIDE 0 26#define OUTSIDE 0
28#define INSIDE 1 27#define INSIDE 1
29 28
30#define NP_STATE_FORMAT_VERSION 1
31
32typedef struct state_data_struct {
33 time_t time;
34 void *data;
35 int length; /* Of binary data */
36} state_data;
37
38typedef struct state_key_struct {
39 char *name;
40 char *plugin_name;
41 int data_version;
42 char *_filename;
43 state_data *state_data;
44} state_key;
45
46typedef struct np_struct { 29typedef struct np_struct {
47 char *plugin_name; 30 char *plugin_name;
48 state_key *state;
49 int argc; 31 int argc;
50 char **argv; 32 char **argv;
51} monitoring_plugin; 33} monitoring_plugin;
@@ -101,10 +83,6 @@ char *np_extract_value(const char *, const char *, char);
101 */ 83 */
102int mp_translate_state(char *); 84int mp_translate_state(char *);
103 85
104void np_enable_state(char *, int);
105state_data *np_state_read(void);
106void np_state_write_string(time_t, char *);
107
108void np_init(char *, int argc, char **argv); 86void np_init(char *, int argc, char **argv);
109void np_set_args(int argc, char **argv); 87void np_set_args(int argc, char **argv);
110void np_cleanup(void); 88void np_cleanup(void);