aboutsummaryrefslogtreecommitdiffstats
path: root/epan/unit_strings.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-12-12 13:22:05 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-13 22:56:36 +0000
commita869ec6f55160622a90bc437517dee91d57f85d5 (patch)
treeea55cf7ba5f820af87e01d2a28d38d6b6ebe547e /epan/unit_strings.h
parente150235ef14cf6a9ada7d74c534e4aee469f3ac5 (diff)
Adjust proto_tree_add_[float|double]_format_value calls to use unit string
Several calls to proto_tree_add_[float|double]_xxx could be better served using BASE_UNIT_STRING with a "unit string" in hf_ field. Added a few more "common" unit string values to unit_strings.[ch] Change-Id: Id0da7b579403898d20c2667d6c4abcd59d5a48d4 Reviewed-on: https://code.wireshark.org/review/19241 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/unit_strings.h')
-rw-r--r--epan/unit_strings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/unit_strings.h b/epan/unit_strings.h
index 7d2a5204cd..f6ca847bd8 100644
--- a/epan/unit_strings.h
+++ b/epan/unit_strings.h
@@ -54,6 +54,11 @@ WS_DLL_PUBLIC const unit_name_string units_second_seconds; // full unit name "se
WS_DLL_PUBLIC const unit_name_string units_seconds; //only seconds abbreviation "s"
WS_DLL_PUBLIC const unit_name_string units_millisecond_milliseconds; // full unit name "millisecond[s?]"
WS_DLL_PUBLIC const unit_name_string units_milliseconds; //only seconds abbreviation "ms"
+WS_DLL_PUBLIC const unit_name_string units_nanosecond_nanoseconds; // full unit name "nanosecond[s?]"
+WS_DLL_PUBLIC const unit_name_string units_degree_degrees;
+WS_DLL_PUBLIC const unit_name_string units_ghz;
+WS_DLL_PUBLIC const unit_name_string units_hz;
+WS_DLL_PUBLIC const unit_name_string units_hz_s;
#ifdef __cplusplus
}