diff options
| author | Martin Schwenke <martin@meltin.net> | 2009-11-26 15:49:49 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2009-11-26 15:49:49 +1100 |
| commit | a64ccf07c108d8e691ffdc1443eb5d5bbc70ed3d (patch) | |
| tree | e7d2ce35db3449ff8f8f73927b7242d3742f1df4 /ctdb/include | |
| parent | ece15620c0ad6b192c359552352208ba2d4adc8a (diff) | |
Add flag to ctdb_event_script_callback indicating when called by client.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit a1d654a982ca56fade82552f4e6b5586236d3233)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb_private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 05b288a08a..07f30f9e68 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -868,7 +868,8 @@ enum ctdb_eventscript_call { CTDB_EVENT_STOPPED, /* This node is stopped: no args. */ CTDB_EVENT_MONITOR, /* Please check if service is healthy: no args. */ CTDB_EVENT_STATUS, /* Report service status: no args. */ - CTDB_EVENT_SHUTDOWN /* CTDB shutting down: no args. */ + CTDB_EVENT_SHUTDOWN, /* CTDB shutting down: no args. */ + CTDB_EVENT_RELOAD /* magic */ }; /* internal prototypes */ @@ -1345,8 +1346,9 @@ int ctdb_event_script_callback(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, void (*callback)(struct ctdb_context *, int, void *), void *private_data, + bool from_user, enum ctdb_eventscript_call call, - const char *fmt, ...) PRINTF_ATTRIBUTE(6,7); + const char *fmt, ...) PRINTF_ATTRIBUTE(7,8); void ctdb_release_all_ips(struct ctdb_context *ctdb); void set_nonblocking(int fd); |
