summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd/dmeventd.h
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2010-10-20 15:12:12 +0000
committerPetr Rockai <prockai@redhat.com>2010-10-20 15:12:12 +0000
commitd95a85ca360767fa41ede89545a70b2aebcad111 (patch)
treed417f8c88cb648ed6fa319b7de320074c1a307d4 /daemons/dmeventd/dmeventd.h
parentf7311db64f8a0986a3829436894359d0918e1053 (diff)
downloadlvm2-d95a85ca360767fa41ede89545a70b2aebcad111.tar.gz
lvm2-d95a85ca360767fa41ede89545a70b2aebcad111.tar.xz
lvm2-d95a85ca360767fa41ede89545a70b2aebcad111.zip
Implement dmeventd -R, allowing dmeventd to be restarted without losing
monitoring state.
Diffstat (limited to 'daemons/dmeventd/dmeventd.h')
-rw-r--r--daemons/dmeventd/dmeventd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/daemons/dmeventd/dmeventd.h b/daemons/dmeventd/dmeventd.h
index 0bf8082d..254758e1 100644
--- a/daemons/dmeventd/dmeventd.h
+++ b/daemons/dmeventd/dmeventd.h
@@ -35,6 +35,8 @@ enum dm_event_command {
DM_EVENT_CMD_SET_TIMEOUT,
DM_EVENT_CMD_GET_TIMEOUT,
DM_EVENT_CMD_HELLO,
+ DM_EVENT_CMD_DIE,
+ DM_EVENT_CMD_GET_STATUS,
};
/* Message passed between client and daemon. */
@@ -63,4 +65,12 @@ struct dm_event_fifos {
#define EXIT_FIFO_FAILURE 6
#define EXIT_CHDIR_FAILURE 7
+/* Implemented in libdevmapper-event.c, but not part of public API. */
+int daemon_talk(struct dm_event_fifos *fifos,
+ struct dm_event_daemon_message *msg, int cmd,
+ const char *dso_name, const char *dev_name,
+ enum dm_event_mask evmask, uint32_t timeout);
+int init_fifos(struct dm_event_fifos *fifos);
+void fini_fifos(struct dm_event_fifos *fifos);
+
#endif /* __DMEVENTD_DOT_H__ */