diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2015-09-23 10:14:31 -0400 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-09-23 20:09:39 +0000 |
commit | 3ff5afd54131dc611ac08cf4f256a7c081c0cbb3 (patch) | |
tree | 22f9d3de81455bb78dd16ae44f1a55aed17620d9 /epan/proto.h | |
parent | 66de69aeaee944cf3130dc75fe3ecb7f383be897 (diff) | |
download | wireshark-3ff5afd54131dc611ac08cf4f256a7c081c0cbb3.tar.gz |
Add a test to verify we pre-allocated enough hf entries.
This way we'll know as soon as we drop below the pre-allocated limit. As
suggested by Graham on https://code.wireshark.org/review/10601
Change-Id: Ieeb14bdcf991d7a67c30787c97ca24ebb35d1763
Reviewed-on: https://code.wireshark.org/review/10627
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/proto.h b/epan/proto.h index 4cf27de497..c30437f9b6 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -2251,8 +2251,9 @@ WS_DLL_PUBLIC void proto_registrar_dump_protocols(void); /** Dumps a glossary of the field value strings or true/false strings to STDOUT */ WS_DLL_PUBLIC void proto_registrar_dump_values(void); -/** Dumps the number of protocol and field registrations to STDOUT. */ -WS_DLL_PUBLIC void proto_registrar_dump_fieldcount(void); +/** Dumps the number of protocol and field registrations to STDOUT. + @return FALSE if we pre-allocated enough fields, TRUE otherwise. */ +WS_DLL_PUBLIC gboolean proto_registrar_dump_fieldcount(void); /** Dumps a glossary of the protocol and field registrations to STDOUT. */ WS_DLL_PUBLIC void proto_registrar_dump_fields(void); |