aboutsummaryrefslogtreecommitdiffstats
path: root/epan/timestats.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-05 13:17:13 -0700
committerMichael Mann <mmann78@netscape.net>2015-07-03 23:09:13 +0000
commitfdb85029fd9b22b221f7123905f1bad66c04ce91 (patch)
tree4e57f253ece70c5c19ad543608b3be48bbdf2329 /epan/timestats.h
parent7fdc534cf967320fce4d560969385d6f19798b8d (diff)
Add ServiceResponseTimeDialog.
Add ServiceResponseTimeDialog as a subclass of TapParameterDialog, similar to StatsTreeDialog. Add initial plumbing for statistics menu items and command line invocation. Don't append "..." to menu item names. Don't add menu icons. In each case this avoids repetitive UI clutter. Change-Id: I463b95c93090160bb81d2e80b16aad389dc0bd6c Reviewed-on: https://code.wireshark.org/review/8864 Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/timestats.h')
-rw-r--r--epan/timestats.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/epan/timestats.h b/epan/timestats.h
index 884fb5b94f..37e45ebe56 100644
--- a/epan/timestats.h
+++ b/epan/timestats.h
@@ -21,13 +21,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef _time_stat
-#define _time_stat
+#ifndef __TIMESTATS_H__
+#define __TIMESTATS_H__
#include <glib.h>
#include "epan/packet_info.h"
#include "wsutil/nstime.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Summary of time statistics*/
typedef struct _timestat_t {
guint32 num; /* number of samples */
@@ -49,4 +53,8 @@ WS_DLL_PUBLIC void time_stat_update(timestat_t *stats, const nstime_t *delta, pa
WS_DLL_PUBLIC gdouble get_average(const nstime_t *sum, guint32 num);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __TIMESTATS_H__ */