summaryrefslogtreecommitdiff
path: root/wsutil
AgeCommit message (Collapse)AuthorFilesLines
2014-02-25Remove trailing whitespaceBill Meier13-23/+23
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2014-02-09Fix Bug 6489 to stop compiler warning on gcrypt deprecated delcarationsHadriel Kaplan1-3/+3
The libgcrypt library has several deprecated functions exported, that we don't use. Unfortunately the GCC compiler warns about these deprecated functions regardless, which is quite annoying. This commit makes clang/gcc ignore the deprecated attribute, for gcrypt.h only. The danger with this is if gcrypt ever deprecates a function we actually *use*, then we won't see the warning. So I'm not sure if it's a good or bad idea to do this change, but it's really annoying to see the warnings and makes finding real warnings difficult. Change-Id: I03e80a6e7e4833ce0f709088c9ab4af98193db3d Reviewed-on: https://code.wireshark.org/review/128 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-01-14Consistently use "guint8" for "8-bit byte".Guy Harris1-5/+5
Constify. For routines that manipulate sequences of 8-bit bytes, have them take guint8 pointers rather than void pointers. Don't cast away constness. svn path=/trunk/; revision=54795
2014-01-10Make internal functions staticAnders Broman1-1/+1
svn path=/trunk/; revision=54686
2014-01-08Need <strsafe.h> for StringCchPrintf().Guy Harris1-0/+1
svn path=/trunk/; revision=54644
2014-01-08Move UAT xton() to wsutil libraryJakub Zawadzki2-0/+27
Use ws_xton() in few more places. svn path=/trunk/; revision=54642
2014-01-07As checkAPIs.pl says, "use StringCchPrintf".Guy Harris1-1/+1
svn path=/trunk/; revision=54641
2014-01-07Fix bug #9618: Invalid utf8 causes JSON dissector assertion failure ↵Jakub Zawadzki6-17/+33
"g_utf8_validate" Validate JSON UTF-8 characters, replace with '?' when invalid. svn path=/trunk/; revision=54633
2014-01-07Move defines for helping with UTF-16 surrogate pairs to wsutil/unicode-utils.hJakub Zawadzki1-0/+11
tvbuff version was moved, but with 'or' optimization from packet-json. svn path=/trunk/; revision=54632
2013-12-26There's no need to mark inline functions with _U_Jakub Zawadzki1-6/+2
svn path=/trunk/; revision=54459
2013-12-21Move epan/base64.[ch] to wsutil/ with function name change.Jakub Zawadzki4-1/+112
svn path=/trunk/; revision=54326
2013-12-20- Change guint32 array initializer constants to use 'U' rather than 'L'Bill Meier1-172/+185
(not that it actally makes any difference); - Change 'guint crc32_0AA725CF_reverse[]' to 'guint32 ...' (no actual difference); - Fix some indentation; - Add editor modelines. svn path=/trunk/; revision=54309
2013-12-19Another try at marking the ws_sign_ext functions possibly-unused.Gerald Combs1-4/+8
svn path=/trunk/; revision=54267
2013-12-19Try to fix a warning found by, but not related to, the ABI check.Gerald Combs1-2/+2
svn path=/trunk/; revision=54265
2013-12-17sign_ext.h: use G_GINT64_CONSTANT(), add sample for alternative method of ↵Jakub Zawadzki1-2/+12
sign extension. Alternative method looks much nicer in dissasembly. svn path=/trunk/; revision=54202
2013-12-17Put sign_ext.h in Makefile.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=54198
2013-12-17Create sign extension routines in <wsutil/sign_ext.h>, use it in few places.Jakub Zawadzki1-0/+50
svn path=/trunk/; revision=54197
2013-12-02Fix (-W)documentation error found by ClangAlexis La Goutte1-2/+2
error: parameter '...' not found in the function declaration [-Werror,-Wdocumentation] svn path=/trunk/; revision=53719
2013-12-02Move most of the plugin code from epan to wsutil and remove allGuy Harris4-0/+482
knowledge of particular types of plugins. Instead, let particular types of plugins register with the common plugin code, giving a name and a routine to recognize that type of plugin. In particular applications, only process the relevant plugin types. Add a Makefile.common to the codecs directory. svn path=/trunk/; revision=53710
2013-11-29Replace macros: BSWAP16, BSWAP32, BSWAP64 with glib-version.Jakub Zawadzki1-11/+0
XXX, people are not aware that expression of this macros might be evaluated multiple times, like: - BSWAP16(tvb_get_letohs(tvb, off)) : \ + GUINT16_SWAP_LE_BE(tvb_get_letohs(tvb, off)) : \ Should be tvb_get_ntohs() called? svn path=/trunk/; revision=53653
2013-11-29Rename some of pint.h macros to match common style (bits number on the end).Jakub Zawadzki2-8/+8
pntohs -> pntoh16 pntohl -> pntoh32 pletohs -> pletoh16 pletohl -> pletoh32 phtons -> phton16 phtonl -> phton32 svn path=/trunk/; revision=53652
2013-11-29Expand macros: htoles(), htolel(), htolell()Jakub Zawadzki1-4/+0
svn path=/trunk/; revision=53651
2013-11-20Remove a few (now unused) variables.Michael Mann1-2/+0
svn path=/trunk/; revision=53442
2013-11-19Fix missing semicolon.Guy Harris1-1/+1
svn path=/trunk/; revision=53437
2013-11-19Add routines to set the personal file directory paths (personalGuy Harris2-70/+26
configuration file directory and directory in which to save captures), have the routine to parse -P options use them, and move that routine to libui. Have that routine just return a gboolean. svn path=/trunk/; revision=53435
2013-11-18Get rid of unused trivial wrapper routine.Guy Harris2-10/+0
svn path=/trunk/; revision=53403
2013-11-17strncat() bad, g_strlcat() good.Guy Harris1-5/+6
svn path=/trunk/; revision=53381
2013-11-17Clean up indentation.Guy Harris1-2/+2
svn path=/trunk/; revision=53380
2013-11-17Move get_tempfile_path() from filesystem.[ch] to tempfile.[ch].Guy Harris4-20/+18
svn path=/trunk/; revision=53379
2013-11-17Move the epan/filesystem.c routines to wsutil; they're not specific toGuy Harris5-1/+2534
packet dissection, they're specific to the entire Wireshark suite of programs. svn path=/trunk/; revision=53377
2013-11-16Fix previous commit + rename to bitswap.Jakub Zawadzki2-2/+2
svn path=/trunk/; revision=53375
2013-11-16Exporting/importing variables cause problems, so create function to do ↵Jakub Zawadzki2-4/+10
bitswaping. svn path=/trunk/; revision=53374
2013-11-16For *definitions* of external data items, we need to useGuy Harris1-2/+1
WS_DLL_PUBLIC_DEF. svn path=/trunk/; revision=53372
2013-11-16Move bitswap.[ch] from epan to wsutil.Jakub Zawadzki4-0/+113
svn path=/trunk/; revision=53365
2013-11-14Revert some inadvertent changes from the last commit.Gerald Combs1-0/+2
svn path=/trunk/; revision=53329
2013-11-14Create a plural-only English translation. Use it to pluralize the FollowGerald Combs1-2/+0
Stream and Flow Graph hint statistics. svn path=/trunk/; revision=53326
2013-11-13Highlight selected sequence diagram items.Gerald Combs1-2/+2
Create a new dialog each time the user follows a stream. A lot of the follow code seems to assume one and only one dialog so there are likely outstanding bugs. Don't use the global cfile (should we deprecate its usage?). We want to move closer to multiple documents, not further away. Clean up after ourselves. Free our payload list and unlink our temp file. Make a bunch of gchar*s QStrings. Make sure our destructor gets called and use it. Make member variable and method names more consistent. svn path=/trunk/; revision=53306
2013-11-09Remove comment (leftovers from r49444) + add missing WS_DLL_PUBLIC for adler32Jakub Zawadzki1-3/+5
(modifing files to be commited when svn commit is already running is no good). svn path=/trunk/; revision=53192
2013-11-09Correct include path.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=53191
2013-11-09Move adler32 from epan/ to wsutil/Jakub Zawadzki4-0/+106
The same like done for crc* svn path=/trunk/; revision=53190
2013-11-09Replace wtap_nstime with nstime_t, remove wtap_nstime_to_sec.Jakub Zawadzki2-14/+0
After r50154 nstime_t is inside wsutil/ so wiretap don't need it's own copy. svn path=/trunk/; revision=53184
2013-11-09Rename swar_count_bits() to ws_count_ones()Jakub Zawadzki4-40/+10
Try to make ws_count_ones() inline function. svn path=/trunk/; revision=53178
2013-11-08Try to split ws_ctz() from hfinfo_bitshift().Jakub Zawadzki2-0/+49
svn path=/trunk/; revision=53176
2013-10-29Revert part of 52896 and (for now) all of 52935. As Jeff pointed out,Gerald Combs4-2/+252
the PortableApps version relies on U3_-prefixed environment variables. svn path=/trunk/; revision=52941
2013-10-27Remove U3 code and packaging.Gerald Combs4-252/+2
svn path=/trunk/; revision=52896
2013-10-22Add STANAG 5066 DTS CRC routines. Bug 9217 ↵Michael Mann4-0/+139
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9217) STANAG 5066 DTS will follow when it passes review, just trying to make the patch more manageable. svn path=/trunk/; revision=52774
2013-10-19Minor refactoring in CMake ABI dump generationBalint Reczey1-3/+1
svn path=/trunk/; revision=52689
2013-10-19Set and use TMPDIR for ABI dump generation when using CMakeBalint Reczey1-4/+4
svn path=/trunk/; revision=52688
2013-10-18Make sure LIBGCRYPT_CFLAGS is added to AM_CPPFLAGS.Gerald Combs1-1/+1
svn path=/trunk/; revision=52672
2013-10-15Factor out common parts of ABI checks to UseABICheck.cmakeBalint Reczey1-15/+3
svn path=/trunk/; revision=52614