root/src/noit_check_tools.h

Revision 9a6060c147e3f375f75141efe7884a911021d87e, 0.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

refactor shared code, add module dependency detection and start splitting out libs in configure

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #ifndef _NOIT_CHECK_TOOLS_H
7 #define _NOIT_CHECK_TOOLS_H
8
9 #include "noit_defines.h"
10 #include "eventer/eventer.h"
11 #include "noit_module.h"
12 #include "noit_check.h"
13 #include "utils/noit_hash.h"
14
15 typedef int (*dispatch_func_t)(noit_module_t *, noit_check_t *);
16
17 API_EXPORT(int)
18   noit_check_interpolate(char *buff, int len, const char *fmt,
19                          noit_hash_table *attrs,
20                          noit_hash_table *config);
21
22 API_EXPORT(int)
23   noit_check_schedule_next(noit_module_t *self,
24                            struct timeval *last_check, noit_check_t *check,
25                            struct timeval *now, dispatch_func_t recur);
26
27 #endif
28
Note: See TracBrowser for help on using the browser.