summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);