X-Git-Url: http://git.samba.org/?p=metze%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=epan%2Funit_strings.h;h=3e4cf97aa8de4a9dbee3d18c9486817297d4c679;hp=96eac1089e3c14885e9cb61acd0d26d3583e3a97;hb=c768cf550384a846204e65520c5d1f0ada908cb0;hpb=d04b5cd362be82bf685fde65af67e73c5a8ca0e4 diff --git a/epan/unit_strings.h b/epan/unit_strings.h index 96eac1089e..3e4cf97aa8 100644 --- a/epan/unit_strings.h +++ b/epan/unit_strings.h @@ -5,19 +5,7 @@ * By Gerald Combs * Copyright 1998 Gerald Combs * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __UNIT_STRINGS_H__ @@ -39,8 +27,9 @@ typedef struct unit_name_string { char *plural; /* name to use for < 1 or > 1 units */ } unit_name_string; -WS_DLL_PUBLIC char* unit_name_string_get_value(guint32 value, unit_name_string* units); -WS_DLL_PUBLIC char* unit_name_string_get_value64(guint64 value, unit_name_string* units); +WS_DLL_PUBLIC const char* unit_name_string_get_value(guint32 value, const unit_name_string* units); +WS_DLL_PUBLIC const char* unit_name_string_get_value64(guint64 value, const unit_name_string* units); +WS_DLL_PUBLIC const char* unit_name_string_get_double(double value, const unit_name_string* units); /* * A default set of unit strings that dissectors can use for @@ -49,6 +38,7 @@ WS_DLL_PUBLIC char* unit_name_string_get_value64(guint64 value, unit_name_string WS_DLL_PUBLIC const unit_name_string units_foot_feet; WS_DLL_PUBLIC const unit_name_string units_bit_bits; WS_DLL_PUBLIC const unit_name_string units_byte_bytes; +WS_DLL_PUBLIC const unit_name_string units_byte_bytespsecond; WS_DLL_PUBLIC const unit_name_string units_octet_octets; WS_DLL_PUBLIC const unit_name_string units_word_words; WS_DLL_PUBLIC const unit_name_string units_tick_ticks; @@ -70,9 +60,12 @@ WS_DLL_PUBLIC const unit_name_string units_nanosecond_nanoseconds; // full unit WS_DLL_PUBLIC const unit_name_string units_nanoseconds; //only seconds abbreviation "ns" WS_DLL_PUBLIC const unit_name_string units_nanometers; WS_DLL_PUBLIC const unit_name_string units_degree_degrees; +WS_DLL_PUBLIC const unit_name_string units_degree_celsius; +WS_DLL_PUBLIC const unit_name_string units_degree_bearing; WS_DLL_PUBLIC const unit_name_string units_decibels; WS_DLL_PUBLIC const unit_name_string units_dbm; WS_DLL_PUBLIC const unit_name_string units_dbi; +WS_DLL_PUBLIC const unit_name_string units_mbm; WS_DLL_PUBLIC const unit_name_string units_percent; WS_DLL_PUBLIC const unit_name_string units_khz; WS_DLL_PUBLIC const unit_name_string units_ghz; @@ -82,13 +75,24 @@ WS_DLL_PUBLIC const unit_name_string units_hz_s; WS_DLL_PUBLIC const unit_name_string units_kbit; WS_DLL_PUBLIC const unit_name_string units_kbps; WS_DLL_PUBLIC const unit_name_string units_kibps; +WS_DLL_PUBLIC const unit_name_string units_km; WS_DLL_PUBLIC const unit_name_string units_kmh; +WS_DLL_PUBLIC const unit_name_string units_milliamps; WS_DLL_PUBLIC const unit_name_string units_microwatts; +WS_DLL_PUBLIC const unit_name_string units_volt; +WS_DLL_PUBLIC const unit_name_string units_grams_per_second; WS_DLL_PUBLIC const unit_name_string units_meter_sec; WS_DLL_PUBLIC const unit_name_string units_meter_sec_squared; WS_DLL_PUBLIC const unit_name_string units_bit_sec; WS_DLL_PUBLIC const unit_name_string units_segment_remaining; WS_DLL_PUBLIC const unit_name_string units_frame_frames; +WS_DLL_PUBLIC const unit_name_string units_revolutions_per_minute; +WS_DLL_PUBLIC const unit_name_string units_kilopascal; +WS_DLL_PUBLIC const unit_name_string units_newton_metre; +WS_DLL_PUBLIC const unit_name_string units_liter_per_hour; +WS_DLL_PUBLIC const unit_name_string units_amp; +WS_DLL_PUBLIC const unit_name_string units_watthour; +WS_DLL_PUBLIC const unit_name_string units_watt; #ifdef __cplusplus }