import: Add support for passive host and service checks
[nagios-reports-module.git] / lparse.h
blob24d0f699c0f4c13f21d6aec8323afebe78886870
1 #ifndef lparse_h__
2 #define lparse_h__
3 typedef unsigned int uint;
4 extern int lparse_fd(int fd, uint size, int (*parse)(char *, uint));
5 extern int lparse_rev_fd(int fd, uint size, int (*parse)(char *, uint));
6 extern int lparse_path_real(int rev, const char *path, uint size, int (*parse)(char *, uint));
7 #define lparse_path(path, size, parse) lparse_path_real(0, path, size, parse)
8 #define lparse_rev_path(path, size, parse) lparse_path_real(1, path, size, parse)
9 #endif