aboutsummaryrefslogtreecommitdiffstats
path: root/tap-stats_tree.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-05-06fix for coverity bug 156Ronnie Sahlberg1-1/+2
it does not seem like it it is possible to trigger this bug since the condition where st is dereferenced and null should be impossible to create. Still handle this impossible situation better if the guarantee that st can not be null here is changed in the future. svn path=/trunk/; revision=18101
2006-02-11 add an userdata argument to register_stat_cmd_arg() and its callback to use ↵Luis Ontanon1-3/+3
the callback for multiple registrations. svn path=/trunk/; revision=17252
2005-08-25http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377Luis Ontanon1-3/+7
svn path=/trunk/; revision=15530
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-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-1/+2
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-08-02Remove svn:executableJörg Mayer1-1/+1
Add svn:eol-style native Add svn:keywords Id svn path=/trunk/; revision=15180
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-6/+6
svn path=/trunk/; revision=13840
2005-03-20There was a design flaw that caused a crash on windows andLuis Ontanon1-17/+25
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-02-27Several fixes to the stats_treeLuis Ontanon1-4/+6
- 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-24Update to the stats_tree tapping APILuis Ontanon1-3/+6
- 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-16Initial checkin of the stats-tree tap APILuis Ontanon1-0/+118
Makefiles have not been modified yet, there's still work to do. svn path=/trunk/; revision=13414