aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/stats_tree_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-30fix for Bug 849Luis Ontanon1-2/+4
svn path=/trunk/; revision=17777
2006-03-16Check struct pointer before dereferencing it. Jaap Keuter1-1/+1
Coverity CID 142 svn path=/trunk/; revision=17644
2006-03-15Fix bug 710 and avoid having it crash when more than one instance are open ↵Luis Ontanon1-7/+35
at once. I think that whoever wrote the whole stats_tree thing should rewrite it ASAP, because it sucks! I did ?!?!?? ooops! svn path=/trunk/; revision=17627
2006-02-12Add userdata arguments to a bunch of stat initialization routines toGuy Harris1-1/+1
squelch compiler warnings. Tag one existing such argument as unused to squelch another warning. Fix up some indentation. svn path=/trunk/; revision=17261
2005-09-22Instead of checking if this is a new packet at every call to avoid ↵Luis Ontanon1-4/+18
recounting the packets at every rerun remove the tap listener of this stats tree. fixes bug 474 svn path=/trunk/; revision=15960
2005-09-15leak fixLuis Ontanon1-2/+6
svn path=/trunk/; revision=15825
2005-09-14Have cf_retap_packets() take an argument that indicates whether toGuy Harris1-1/+1
generate columns; use cf_retap_packets instead of cf_redissect_packets() when running taps (the general flow graph stat uses the Info column). svn path=/trunk/; revision=15793
2005-08-25http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377Luis Ontanon1-3/+4
svn path=/trunk/; revision=15530
2005-08-21"gtk_tap_dfilter_dlg_cb()" is no longer used outsideGuy Harris1-1/+0
gtk/tap_dfilter_dlg.c; don't export it. That means that gtk/tap_dfilter_dlg.h is no longer useful; get rid of it. Rename "gtk_tap_dfilter_dlg_cb()" to "tap_dfilter_dlg_cb()", as it's inside GTK+-specific code, so there's no need to distinguish it from non-GTK+ callbacks. Update some comments to reflect the name change and the new API for registering tap_dfilter_dlg stats. Make the AFP and SMB stats use the gtk/tap_dfilter_dlg.c stuff. svn path=/trunk/; revision=15496
2005-08-21Add a "register_dfilter_stat()", to register stats that take a displayGuy Harris1-9/+3
filter as an argument on the command line and have a dialog box to enter the display filter through the GUI. Use it for all stats using "gtk_tap_dfilter_dlg_cb()". Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E" for the benefit of the declaration of "register_dfilter_stat()" in the top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk directory to "gtk_stat_menu.h", so as not to have two headers with the same name. Get rid of headers not declaring any functions not being used in the module. svn path=/trunk/; revision=15493
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris1-1/+1
svn path=/trunk/; revision=15429
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris1-3/+4
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
2005-08-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris1-1/+1
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris1-1/+1
it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. svn path=/trunk/; revision=13993
2005-03-21Rename all stats_tree extern functions to start with stats_tree_Luis Ontanon1-7/+7
svn path=/trunk/; revision=13840
2005-03-20Fix the expansion of the top-level nodes in GTK+ 1.2[.x].Guy Harris1-2/+5
svn path=/trunk/; revision=13837
2005-03-20Expand the root nodes by defaultLuis Ontanon1-0/+10
svn path=/trunk/; revision=13833
2005-03-20The GTK+ 2.x version doesn't automatically expand the root node; don'tGuy Harris1-5/+0
do so in the GTK+ 1.2[.x] version. svn path=/trunk/; revision=13831
2005-03-20Make columns in the GTK+ 1.2[.x] version auto-resizing.Guy Harris1-8/+9
svn path=/trunk/; revision=13830
2005-03-20Make the top-level node start out expanded in GTK+ 1.2[.x].Guy Harris1-1/+5
svn path=/trunk/; revision=13829
2005-03-20Do a GTK+ 1.2[.x] version.Guy Harris1-57/+61
Clean up indentation. Put the members of the _stat_tree_columns enum in order by column number. svn path=/trunk/; revision=13822
2005-03-20st->name was moved to st->cfg->nameLuis Ontanon1-1/+1
svn path=/trunk/; revision=13821
2005-03-20There was a design flaw that caused a crash on windows andLuis Ontanon1-40/+37
left uninitialized successive copies of the stats tree. Split the stats_tree data in two different structs one for data that's always needed and it's not going to change at every run and another for each run of the tap. svn path=/trunk/; revision=13816
2005-03-19Use capitalized words for column headersUlf Lamping1-5/+5
svn path=/trunk/; revision=13812
2005-03-19Add a "Close" button, as not everyone uses a window manager providing the ↵Ulf Lamping1-5/+17
'X' to close a window. In addition, this enables the ESC key to close the window Slightly increase the initial window size svn path=/trunk/; revision=13810
2005-03-09removed some MSVC compiler warnings, mostly I've casted "downsized function ↵Ulf Lamping1-1/+1
parameters" svn path=/trunk/; revision=13684
2005-03-07add a default size to stats_tree windows. so we do not have to resize them ↵Lars Roland1-0/+1
everytime. svn path=/trunk/; revision=13655
2005-02-28- do not free the string passed to register_ethereal_tap()Luis Ontanon1-3/+3
it caused the taps to have "funny" names. - rename the window as "$name Stats Tree" svn path=/trunk/; revision=13546
2005-02-27the last commit broke windows compilation.Luis Ontanon1-3/+5
minor changes in typing variables exclude a GTK2 call from being called while using GTK1 svn path=/trunk/; revision=13539
2005-02-27Several fixes to the stats_treeLuis Ontanon1-28/+41
- Avoid creating a copy of every branch at reinitialization this used to cause some GTK warnings and a leakage of tree nodes - propperly check the optarg to avoid getting junk in the filter text this caused a crash svn path=/trunk/; revision=13534
2005-02-25- undo disabling the GTK2 versionLuis Ontanon1-12/+14
- do not declare a variable after the first statement or else windows compilation fails svn path=/trunk/; revision=13522
2005-02-25Temporarily disable the gtk2 version that causes a compilation error on windows.Luis Ontanon1-9/+9
svn path=/trunk/; revision=13521
2005-02-25some more work forLuis Ontanon1-11/+25
- beautify the text output - make gtk1 textbox implementation usable (I hope) svn path=/trunk/; revision=13506
2005-02-24Update to the stats_tree tapping APILuis Ontanon1-4/+15
- change the tap init_string to %s,tree instead of %s,stat - change the registration key (it used to be tapname, that disallowed to register more than one tap per protocol) - add a "pivot" node for convenience svn path=/trunk/; revision=13502
2005-02-20comment out two g_message() callsLuis Ontanon1-2/+2
svn path=/trunk/; revision=13449
2005-02-20Fixes few things during reinitialization with gtk2 (it doesn't crash anymore),Luis Ontanon1-7/+11
there are still problems at reinit (gtk2 node->pr warns about an iterator not been OK) set up propperties of the given files svn path=/trunk/; revision=13448
2005-02-16Initial checkin of the stats-tree tap APILuis Ontanon1-0/+327
Makefiles have not been modified yet, there's still work to do. svn path=/trunk/; revision=13414