Changeset 392bce2983e3ccbbb15d63928f3f3e1c53ef9b25
- Timestamp:
- 01/23/08 21:01:11
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1201122071 +0000
- git-parent:
[7629c91f7f8130c5036a73b6af395058d96db8e9]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1201122071 +0000
- Message:
implementation (partial) of some stubs
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf41090d |
r392bce2 |
|
| 25 | 25 | SUBS=utils jlog eventer |
|---|
| 26 | 26 | |
|---|
| 27 | | OBJS=noitd.o noit_listener.o noit_console.o |
|---|
| | 27 | OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o |
|---|
| 28 | 28 | |
|---|
| 29 | 29 | all: noitd |
|---|
| r7629c91 |
r392bce2 |
|
| 21 | 21 | * host (target) |
|---|
| 22 | 22 | * check (module) |
|---|
| | 23 | * name (identifying the check to the user if |
|---|
| | 24 | * multiple checks of the same module are specified) |
|---|
| 23 | 25 | * config (params for the module) |
|---|
| 24 | 26 | * period (ms) |
|---|
| … | … | |
| 30 | 32 | */ |
|---|
| 31 | 33 | |
|---|
| 32 | | #define NP_RUNNING 0x00000001 |
|---|
| 33 | | #define NP_KILLED 0x00000002 |
|---|
| | 34 | #define NP_RUNNING 0x00000001 |
|---|
| | 35 | #define NP_KILLED 0x00000002 |
|---|
| | 36 | #define NP_DISABLED 0x00000004 |
|---|
| 34 | 37 | |
|---|
| 35 | 38 | typedef struct { |
|---|
| … | … | |
| 48 | 51 | char *target; |
|---|
| 49 | 52 | char *module; |
|---|
| | 53 | char *name; |
|---|
| 50 | 54 | noit_hash_table *config; |
|---|
| 51 | 55 | u_int32_t period; |
|---|
| 52 | 56 | u_int32_t timeout; |
|---|
| 53 | | u_int32_t flags; /* NP_KILLED, NP_RUNNING */ |
|---|
| | 57 | u_int32_t flags; /* NP_KILLED, NP_RUNNING */ |
|---|
| 54 | 58 | |
|---|
| 55 | 59 | eventer_t fire_event; |
|---|
| … | … | |
| 59 | 63 | } stats; |
|---|
| 60 | 64 | void *closure; |
|---|
| 61 | | } noit_check_t; |
|---|
| | 65 | } * noit_check_t; |
|---|
| 62 | 66 | |
|---|
| 63 | 67 | API_EXPORT(int) |
|---|
| 64 | 68 | noit_poller_schedule(const char *target, |
|---|
| 65 | 69 | const char *module, |
|---|
| | 70 | const char *name, |
|---|
| 66 | 71 | noit_hash_table *config, |
|---|
| 67 | 72 | u_int32_t period, |
|---|
| 68 | 73 | u_int32_t timeout, |
|---|
| 69 | | uuid_t *out); |
|---|
| | 74 | uuid_t out); |
|---|
| 70 | 75 | |
|---|
| 71 | 76 | API_EXPORT(int) |
|---|
| 72 | | noit_poller_deschedule(uuid_t *in); |
|---|
| | 77 | noit_poller_deschedule(uuid_t in); |
|---|
| 73 | 78 | |
|---|
| 74 | 79 | #endif |
|---|