root/src/noit_module.h
| Revision 0268e62cb80791dd94220cf6deec916656c7cddd, 0.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /* |
| 2 | * Copyright (c) 2007, 2008, OmniTI Computer Consulting, Inc. |
| 3 | * All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _NOIT_MODULE_H |
| 7 | #define _NOIT_MODULE_H |
| 8 | |
| 9 | #include "noit_defines.h" |
| 10 | #include "utils/noit_hash.h" |
| 11 | #include "noit_poller.h" |
| 12 | |
| 13 | typedef struct { |
| 14 | char *name; |
| 15 | char *description; |
| 16 | int (*onload)(); |
| 17 | int (*config)(noit_hash_table *options); |
| 18 | int (*init)(); |
| 19 | int (*initiate_check)(noit_check_t check); |
| 20 | } noit_module_t; |
| 21 | |
| 22 | API_EXPORT(int) |
| 23 | noit_module_load(const char *file, const char *name); |
| 24 | API_EXPORT(noit_module_t *) |
| 25 | noit_module_lookup(const char *name); |
| 26 | |
| 27 | #endif |
Note: See TracBrowser for help on using the browser.
