mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
both check_curl and check_http have implemented the same validation function. this change relocates the implementation to a shared location to be used by both.
12 lines
383 B
C
12 lines
383 B
C
#ifndef NP_UTILS_VALIDATE_H
|
|
#define NP_UTILS_VALIDATE_H
|
|
/* Header file for Monitoring Plugins utils_validate.c */
|
|
|
|
/* This file should be included in all plugins where user
|
|
input needs to be validated */
|
|
|
|
/* The purpose of this package is to provide reusable logic
|
|
for the purpose of validating user input. */
|
|
|
|
void validate_file_exists(char *path);
|
|
#endif /* NP_UTILS_VALIDATE_H */
|