diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-20 03:14:03 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-21 06:27:40 (GMT) |
commit | a4647be424c9350ab967eeacccd2761c71f9c6a9 (patch) | |
tree | 065729e41f68f4e101a8089574216ec62ce9d2b3 /lib/utils_base.h | |
parent | 81871eaa82bd0ca1c4a3ea8781bd8bf095073fd0 (diff) | |
download | monitoring-plugins-a4647be424c9350ab967eeacccd2761c71f9c6a9.tar.gz |
Move check_ntp's extract_value to utils_base.c.
This function can also be used to parse performance data strings which
could be useful in the future.
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r-- | lib/utils_base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index bda7659..c34f044 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
@@ -50,4 +50,12 @@ int np_check_if_root(void); | |||
50 | * code from the above function, in case it's helpful for testing */ | 50 | * code from the above function, in case it's helpful for testing */ |
51 | int np_warn_if_not_root(void); | 51 | int np_warn_if_not_root(void); |
52 | 52 | ||
53 | /* | ||
54 | * Extract the value from key/value pairs, or return NULL. The value returned | ||
55 | * can be free()ed. | ||
56 | * This function can be used to parse NTP control packet data and performance | ||
57 | * data strings. | ||
58 | */ | ||
59 | char *np_extract_value(const char*, const char*); | ||
60 | |||
53 | #endif /* _UTILS_BASE_ */ | 61 | #endif /* _UTILS_BASE_ */ |