aboutsummaryrefslogtreecommitdiffstats
path: root/epan/libwireshark.def
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-01-12 02:25:08 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-01-12 02:25:08 +0000
commit0c4e881911efcf0ddc1278a0ed2bd100d8d06c43 (patch)
treeccf27b3ad65b72ef7318a4bcd3f1d78bb663b019 /epan/libwireshark.def
parent1c5d75288c8f5b83659f4f5969ca0ef4a2cde2f9 (diff)
Introduce, and start using, tvb_get_const_stringz(). This function returns a
pointer to a NULL-terminated string in the TVB. It is no safer than dissectors which call tvb_get_strsize() and then tvb_get_ptr() but it makes it clear that this usage of tvb_get_ptr() is safe. This function is slightly more efficient than tvb_get_ephemeral_stringz()--but only as long as we're not using composite TVBs. svn path=/trunk/; revision=35493
Diffstat (limited to 'epan/libwireshark.def')
-rw-r--r--epan/libwireshark.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/libwireshark.def b/epan/libwireshark.def
index 5d7a33ca61..0aa0202a69 100644
--- a/epan/libwireshark.def
+++ b/epan/libwireshark.def
@@ -1041,6 +1041,7 @@ tvb_get_bits8
tvb_get_bits16
tvb_get_bits32
tvb_get_bits64
+tvb_get_const_stringz
tvb_get_ephemeral_faked_unicode
tvb_get_ephemeral_string
tvb_get_ephemeral_stringz