monitoring-plugins/plugins/utils_validate.h
Gordon Bleux ea4af7e428 plugins: move duplicate input validation to shared utility
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.
2025-09-27 09:06:57 +02:00

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 */