The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / globals.h @ master

History | View | Annotate | Download (1.1 KB)

# Date Author Comment
29659139 03/04/2014 09:27 AM Alexis La Goutte

Remove all $Id$ from top of file

(Using sed : sed -i '/^ \* \$Id\$/,+1 d')

Fix manually some typo (in export_object_dicom.c and crc16-plain.c)

Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <>

bf81b42e 06/28/2012 06:56 PM Jakub Zawadzki

Update Free Software Foundation address.

(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536

6b178bd4 12/28/2011 07:08 PM Gerald Combs

Add 'extern "C"' wrappers and #include guards to various header files.

svn path=/trunk/; revision=40321

f2e7cc95 08/30/2011 03:33 AM Anders Broman

Do as the comment says - move the variable to gtkglobals.

svn path=/trunk/; revision=38791

0cf09939 08/30/2011 01:20 AM Anders Broman

Path from Joerg Mayer, I'm committing it as I think the right thing to do is to have all menus defined in the GUI and then hide the ones
not available/usable and thuss get rid of a lot of #ifdefs.

As for the icons we should load all of them even if some are not needed in all configurations....

4c1b59c9 01/13/2011 12:39 PM Stephen Fisher

Wrap include file in extern "C" { ... } for __cplusplus

svn path=/trunk/; revision=35521

89f022b1 05/21/2006 01:12 AM Ronnie Sahlberg

name change

svn path=/trunk/; revision=18197

b8136fbf 02/11/2006 10:15 PM Guy Harris

Add a routine to attempt to get the absolute pathname of the executable
file, strip off the last component to get the pathname of the directory
containing the executable file, and save it for future use. On Windows,
you can get that from the OS, but, on UN*X, you have to look at argv0...

8a8b8834 07/17/2004 08:24 PM Guy Harris

Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on...

0af38397 06/01/2004 01:37 PM Ulf Lamping

various code cleanups

svn path=/trunk/; revision=11053

11f92323 03/18/2004 02:04 PM Olivier Biot

From Lars Roland: Move timestamp_type into libethereal and provide accessor
methods for getting and setting the timestamp type.

This is a move towards a real libethereal shared library.

svn path=/trunk/; revision=10402

219b6cef 10/31/2003 09:30 PM Guy Harris

Based on a patch from Brian Fundakowski Feldman, add support for setting
link-layer type when capturing, using the "pcap_set_datalink()" and
related APIs.

svn path=/trunk/; revision=8848

dd628e00 09/23/2003 08:47 PM Guy Harris

Make "finfo_selected" a member of a "capture_file" structure rather than
an independent global variable.

svn path=/trunk/; revision=8524

f8c12c25 09/06/2002 02:29 PM Jörg Mayer

Remove unused include

svn path=/trunk/; revision=6199

7c4176d8 08/28/2002 05:04 PM Jörg Mayer

Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117

ee5ca25d 01/21/2002 02:37 AM Guy Harris

Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level...

b3f81eb3 01/10/2002 06:05 AM Guy Harris

Separate the promiscuous mode, "Update list of packets in real time",
and "Automatic scrolling in live capture" options from the preference
settings for them, so that the preference settings affect the initial
values of those options, but changing those values in a capture don't...

2851b7ef 06/05/2001 03:39 AM Guy Harris

Enable "Match Selected" only if there's a field selected and we can do
a "Match Selected" on it - we can't do a "Match Selected" if the field
has no value (e.g., FT_NULL) and has a length of 0.

If we unselect the current packet, we don't have a protocol tree, so we...

bdb69627 04/30/2001 08:18 PM Guy Harris

"prefs.capture_real_time", not "prefs.capture_auto_scroll", should
control whether we have a child process do the capturing; a user might
want the packet list to be updated as packets arrive but not want it
to scroll so that the most recently arrived packets are shown....

c58b7b49 03/27/2001 01:48 AM Guy Harris

Make "comp_info_str" static in Ethereal - there's no need for it outside
"gtk/main.c" in Ethereal.

Add the GLib version to it in Ethereal, and put in the GLib version
rather than the GTK+ version in Tethereal (which isn't linked with
GTK+...).

Make it a GString; this makes the code to construct it slightly less...

fb843849 10/19/2000 06:59 PM Guy Harris

Move the declaration of "g_resolving_actif" from the top-level
"globals.h" file to "epan/resolv.h", as it's exported by
"epan/resolv.c", have files that use "g_resolving_actif" include
"resolv.h", and don't have "epan/resolv.c" include "globals.h" so that...

9d9850f2 09/27/2000 11:16 PM Gilbert Ramirez

More EPAN-related code movements. Get rid of usage of #include "globals.h"
and #include "util.h" from epan code. Move get_home_dir() into epan/filesystem.c
as it's used by plugins.c.

svn path=/trunk/; revision=2461

e697eb8e 08/20/2000 03:53 AM Guy Harris

Instead of having the normal-weight and bold fonts set separately,
generate the name of the boldface font from the Roman font; if the two
fonts don't have the same widths, the display will look weird when a
field is selected, and it's a bit of a pain for the user to have to...

6a480953 08/11/2000 09:37 AM Laurent Deniel

Miscellaneous code cleaning

- add <stdarg.h> or <varargs.h> in snprintf.h
and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes

- remove the check of multiple inclusions in source (.c) code
(there is a bit loss of cpp performance, but I prefer the gain of...

a3e71904 08/03/2000 08:44 AM Gilbert Ramirez

Add a "Save As" feature to the TCP Follow dialogue, to save the stream
file to a user-specified file.

Move the file-copy routine in save_cap_file() to an indepenent
function in file.c (copy_binary_file()) so that follow_dlg.c can use it.

Remove #include "follow.h" from the C files that don't need it....

7fbf320b 06/27/2000 12:36 AM Guy Harris

Patch from Ben Fowler to rename the global variable "cf" to "cfile", to
make it easier to use grep to find all references to it without getting
a lot of false hits and to check, after allocating the memory chunk for
"frame_data" structures, that the allocation succeeded....

8e68faf2 01/24/2000 11:31 PM Guy Harris

Encapsulate the code to take a pointer to a pathname and return a
pointer to the name of the file to which it refers (i.e., to the last
component of the pathname) in a "get_basename()" routine, and have the
code in "file.c" call it.

svn path=/trunk/; revision=1552

59fcaf5c 01/24/2000 07:17 PM Guy Harris

On Win32, when splitting file names into directory and last component,
search for '\' rather than '/'.

svn path=/trunk/; revision=1545

f393a198 01/23/2000 11:44 PM Guy Harris

Heikki Vatiainen's patch to add a flag to control whether to interpret
the IPv4 TOS field as a TOS field or as a DiffServ field, and allow that
field to be controlled by a command-line option or an option in the
"Display:Options" dialog box.

svn path=/trunk/; revision=1532

9f60ef9c 01/06/2000 01:28 AM Guy Harris

Don't include "print.h" in "globals.h"; have the few files that need
stuff from it include it themselves.

svn path=/trunk/; revision=1424

d035d071 12/29/1999 12:48 AM Guy Harris

Get rid of the commented-out GTK+ declarations.

svn path=/trunk/; revision=1386

b91d595c 11/19/1999 05:32 PM Gilbert Ramirez

Change match_selected() to produce a display filter using the selected
field's name, if possible. (If the selected field is not a registered field,
then of course, we still have to use the frame[x:y] syntax).

tree_selected_start and tree_selected_len are on longer globals variables;...

b0cfa341 10/20/1999 06:36 PM Gilbert Ramirez

Move GTK-related stuff out of globals.h and put it in gtk/gtkglobals.h

svn path=/trunk/; revision=896

33955595 10/02/1999 03:24 PM Guy Harris

Move the declaration of global variables involved with packet capture
from "globals.h" to "capture.h".

Only "capture.c" needs to include <pcap.h>; move the include of <pcap.h>
from "capture.h" to "capture.c".

We no longer need any DLT_ defines (that's handled inside Wiretap);...

bab015f5 09/30/1999 02:50 AM Guy Harris

Add a new global flag "capture_child", which is TRUE if we're a child
process for a sync mode or fork mode capture.

Have that flag control whether we do things that only the parent or
only the child should do, rather than basing it solely on the setting...

e4f78097 09/29/1999 06:19 PM Guy Harris

Add an item to the "File/Print" dialog box to ask that the full hex data
of the packet be printed (this is only done if "Print detail" is
selected; it should be grayed out of "Print summary" is selected).

If that item is selected, suppress the hex printing of uninterpreted...

a673e8bb 09/26/1999 10:40 AM Laurent Deniel

Added name resolution in GUI part:

- Capture->Start->"Active name resolution"

Allows the user to turn on/off name resolution
during a live capture.

- Display->Options->"Name resolution"

Turn on/off name resolution for the displayed
data (or during the -S mode)....

12d3278d 09/23/1999 02:27 AM Guy Harris

Move the toolkit-independent code to create a temporary capture file,
and to fork off and run a separate copy of "ethereal" for "-S" and "-F"
captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c"
and into a routine in "capture.c".

If the attempt to create said temporary capture file fails, pop up a...

3bd68e68 09/19/1999 11:54 AM Laurent Deniel

Added "Automatic scrolling in live capture".
This display option is disabled by default.

svn path=/trunk/; revision=691

35d5e37a 09/12/1999 10:34 AM Laurent Deniel

Some old CPP or tools that take C code in input do
not like #preprocessor_macros that do not start at
the first column.

So write:

#ifdef FOO
  1. include <dummy1.h>
  2. define DUMMY 1
    #else
  3. include <dummy2.h>
  4. define DUMMY 2
    #endif

instead of

#ifdef FOO...

dc298db5 09/10/1999 03:19 AM Guy Harris

Give "globals.h" an RCS ID and copyright/GPL notice.

Move some defines that would be used even by a non-GTK+-based Ethereal
from "gtk/main.h" to "globals.h".

Remove the byte-order #defines from "packet.h", as they're now in
"globals.h" (having been moved there from "gtk/main.h")....

8617c58f 09/08/1999 11:32 PM Gilbert Ramirez

More shuffling of GTK-related routines to gtk subdirectory.

svn path=/trunk/; revision=636

65c3e8d9 08/31/1999 11:04 PM Gilbert Ramirez

Moved GTK-dependent routines for file dialogues, print dialogues, print
preferences, and menus to gtk subdirectory.

svn path=/trunk/; revision=623