summaryrefslogtreecommitdiffstats
path: root/include/heartbeat.h
diff options
context:
space:
mode:
authorJean-Frederic Clere <jfclere@apache.org>2009-07-28 14:28:18 +0200
committerJean-Frederic Clere <jfclere@apache.org>2009-07-28 14:28:18 +0200
commitd072258f052b1c5ec480e629ba5229a8057d1b9d (patch)
treee9ebefd6d0b2d6ecc6dc61a7f5b68adcb4306d2e /include/heartbeat.h
parentremoved obsolete cast. Mentioned by Peter Sylvester. (diff)
downloadapache2-d072258f052b1c5ec480e629ba5229a8057d1b9d.tar.xz
apache2-d072258f052b1c5ec480e629ba5229a8057d1b9d.zip
Put the hm_slot_server_t in a common include.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@798507 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/heartbeat.h')
-rw-r--r--include/heartbeat.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/include/heartbeat.h b/include/heartbeat.h
new file mode 100644
index 0000000000..8d897bb767
--- /dev/null
+++ b/include/heartbeat.h
@@ -0,0 +1,51 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef HEARTBEAT_H
+#define HEARTBEAT_H
+
+/**
+ * @file heartbeat.h
+ * @brief commun structures for mod_heartmonitor.c and mod_lbmethod_heartbeat.c
+ *
+ * @defgroup HEARTBEAT mem
+ * @ingroup APACHE_MODS
+ * @{
+ */
+
+#include "apr.h"
+#include "apr_time.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAXIPSIZE 64
+typedef struct hm_slot_server_t
+{
+ char ip[MAXIPSIZE];
+ int busy;
+ int ready;
+ apr_time_t seen;
+ int id;
+} hm_slot_server_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */