summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.d/check_swap.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_swap.d/check_swap.h')
-rw-r--r--plugins/check_swap.d/check_swap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_swap.d/check_swap.h b/plugins/check_swap.d/check_swap.h
index bad52917..9e8be75f 100644
--- a/plugins/check_swap.d/check_swap.h
+++ b/plugins/check_swap.d/check_swap.h
@@ -4,7 +4,7 @@
4#include "../common.h" 4#include "../common.h"
5 5
6#ifndef SWAP_CONVERSION 6#ifndef SWAP_CONVERSION
7#define SWAP_CONVERSION 1 7# define SWAP_CONVERSION 1
8#endif 8#endif
9 9
10typedef struct { 10typedef struct {
@@ -25,7 +25,6 @@ typedef struct {
25} swap_result; 25} swap_result;
26 26
27typedef struct { 27typedef struct {
28 int verbose;
29 bool allswaps; 28 bool allswaps;
30 int no_swap_state; 29 int no_swap_state;
31 threshold warn; 30 threshold warn;
@@ -34,10 +33,10 @@ typedef struct {
34 int conversion_factor; 33 int conversion_factor;
35} swap_config; 34} swap_config;
36 35
37swap_config swap_config_init(); 36swap_config swap_config_init(void);
38 37
39swap_result get_swap_data(swap_config config); 38swap_result get_swap_data(swap_config config);
40swap_result getSwapFromProcMeminfo(swap_config config, char path_to_proc_meminfo[]); 39swap_result getSwapFromProcMeminfo(char path_to_proc_meminfo[]);
41swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); 40swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]);
42swap_result getSwapFromSwapctl_BSD(swap_config config); 41swap_result getSwapFromSwapctl_BSD(swap_config config);
43swap_result getSwapFromSwap_SRV4(swap_config config); 42swap_result getSwapFromSwap_SRV4(swap_config config);