summaryrefslogtreecommitdiffstats
path: root/hbeat.h
diff options
context:
space:
mode:
authorDean Jansa <djansa@redhat.com>2005-10-06 20:06:41 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:45 -0400
commit5da52098beb4fa5af4b592b3f050fcc12e0bd05b (patch)
treef61ee7f110582435e76be49acc1187173e3709f5 /hbeat.h
parent89d2504db378c5b091db5229484af5c58851fa5f (diff)
downloadqarsh-5da52098beb4fa5af4b592b3f050fcc12e0bd05b.zip
qarsh-5da52098beb4fa5af4b592b3f050fcc12e0bd05b.tar.gz
qarsh-5da52098beb4fa5af4b592b3f050fcc12e0bd05b.tar.xz
Added interfaces to get/set the hbeat state.
Diffstat (limited to 'hbeat.h')
-rw-r--r--hbeat.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/hbeat.h b/hbeat.h
index 1a7b4b8..fb6d6ac 100644
--- a/hbeat.h
+++ b/hbeat.h
@@ -4,6 +4,13 @@
typedef void * hbeat_t;
+typedef enum {
+ HOST_ALIVE, HOST_QUIET, HOST_TIMEOUT, HOST_REBOOT, HOST_HBEAT_DISABLED
+} hbeat_state_t;
+
+
extern hbeat_t hbeat_init(const char *host, int max_timeout);
-void hbeat_free(hbeat_t hbh);
-unsigned int hbeat(hbeat_t hbh);
+extern void hbeat_free(hbeat_t hbh);
+extern unsigned int hbeat(hbeat_t hbh);
+extern hbeat_state_t hbeat_getstate(hbeat_t hbh);
+extern void hbeat_setstate(hbeat_t hbh, hbeat_state_t state);