summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2006-01-16 22:10:47 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:45 -0400
commit71b0e211a9f865fff608f2619de1a7c18b2ee62d (patch)
tree2f550cb936b389baa0dd60771d670b2e327b524c
parent65794221d4d9890a2536c6bb95301466e9707592 (diff)
downloadqarsh-71b0e211a9f865fff608f2619de1a7c18b2ee62d.zip
qarsh-71b0e211a9f865fff608f2619de1a7c18b2ee62d.tar.gz
qarsh-71b0e211a9f865fff608f2619de1a7c18b2ee62d.tar.xz
Add a function to get the max timeout value from a heartbeat handle.
-rw-r--r--hbeat.c6
-rw-r--r--hbeat.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/hbeat.c b/hbeat.c
index 08ec9d1..c2456ca 100644
--- a/hbeat.c
+++ b/hbeat.c
@@ -166,3 +166,9 @@ hbeat_setstate(hbeat_t hbh, hbeat_state_t state)
((struct hbeat_s *)hbh)->rhost_state = state;
return;
}
+
+int
+hbeat_getmaxtimeout(hbeat_t hbh)
+{
+ return ((struct hbeat_s *)hbh)->max_timeout;
+}
diff --git a/hbeat.h b/hbeat.h
index fb6d6ac..3238ccf 100644
--- a/hbeat.h
+++ b/hbeat.h
@@ -14,3 +14,4 @@ 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);
+extern int hbeat_getmaxtimeout(hbeat_t hbh);