aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/wsp_stat.c
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris2006-05-221-2/+2
| | | | | | strings, and function names. svn path=/trunk/; revision=18205
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* Add userdata arguments to a bunch of stat initialization routines toGuy Harris2006-02-121-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
* Have cf_retap_packets() take an argument that indicates whether toGuy Harris2005-09-141-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
* "gtk_tap_dfilter_dlg_cb()" is no longer used outsideGuy Harris2005-08-211-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
* Have "register_dfilter_stat()" add "..." to the menu item, as all menuGuy Harris2005-08-211-1/+1
| | | | | | | | | | items registered with it pop up a dialog box before displaying the stat. Don't pass a name with "..." to it. Put "..." into other menu items that pop up a dialog box before displaying the stat; remove "..." from other menu items that don't. svn path=/trunk/; revision=15495
* Add a "register_dfilter_stat()", to register stats that take a displayGuy Harris2005-08-211-6/+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
* Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris2005-08-201-1/+1
| | | | | | | implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
* renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping2005-08-201-1/+1
| | | | | | named ui_util.h in / dir svn path=/trunk/; revision=15465
* Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris2005-08-191-1/+1
| | | | svn path=/trunk/; revision=15429
* Move the APIs for registering and processing "-z" command-line argumentsGuy Harris2005-08-191-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
* Squelch more const warnings (and fix some memory leaks that found).Guy Harris2005-08-061-2/+2
| | | | | | | | | | _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
* More constification.Guy Harris2005-06-281-1/+1
| | | | svn path=/trunk/; revision=14812
* Constify a bunch of structure members and function arguments, to squelchGuy Harris2005-06-241-4/+4
| | | | | | | | compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
* add 12 new toolbar/menu iconsUlf Lamping2005-04-161-1/+1
| | | | | | | | | add two toolbar toggle buttons add icons to various menu items create new Statistics telephony group and put telephony and alike protocols in it svn path=/trunk/; revision=14098
* Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris2005-04-011-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
* huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping2005-02-041-1/+1
| | | | | | | | This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
* As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris2005-01-011-2/+2
| | | | | | | | | | | | | | | const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) svn path=/trunk/; revision=12910
* Move the tap infrastructure to the epan directory.Guy Harris2004-09-291-1/+1
| | | | svn path=/trunk/; revision=12128
* Move dissectors to epan/dissectors directory.Gilbert Ramirez2004-07-181-1/+1
| | | | | | | | | | Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | 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 Windows, not on UN*X. svn path=/trunk/; revision=11400
* use new functions in window API (ui_util.h),Ulf Lamping2004-05-231-23/+10
| | | | | | | | use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
* added a close button to the dialogs,Ulf Lamping2004-04-121-13/+35
| | | | | | use the dlg_window_new function for all dialogs svn path=/trunk/; revision=10586
* From Lars Roland: use the generic filter dialog for the SIP, HTTP, WSP,Guy Harris2004-03-271-103/+12
| | | | | | | | | | | | and BOOTP taps. Get rid of the "dlg" variable in some of those taps - it's never set, so it's always null, and nothing useful is done with it if it's null. Make static some variables and functions not used outside the source file in which they're defined. svn path=/trunk/; revision=10500
* replaced sprintf / snprintf by g_snprintf,Ulf Lamping2004-03-131-8/+10
| | | | | | various other string related changes svn path=/trunk/; revision=10373
* various string related changes, mainly replace sprintf/snprintf by g_snprintfUlf Lamping2004-03-131-3/+2
| | | | svn path=/trunk/; revision=10371
* statistics menu redesigned, now looking more like the former menu,Ulf Lamping2004-02-231-2/+2
| | | | | | items now again grouped by function, not by ISO layer svn path=/trunk/; revision=10202
* statistics menu structure proposal:Ulf Lamping2004-02-221-2/+2
| | | | | | | renamed "Watch Protocol" to "Statistics", Made two new toplevel menu items "Transport" and "Application" svn path=/trunk/; revision=10183
* WIDGET_SET_SIZE(-2) is asserted by current GTK2 libs, so don't use itUlf Lamping2004-02-221-2/+2
| | | | svn path=/trunk/; revision=10181
* Redesigned the menu structure of the former statistics stuff,Ulf Lamping2004-02-221-6/+2
| | | | | | | | | now sorted by ISO-layer, than alphabetically (now longer by functionality). Seperated the tap registering from the actual menu making stuff, so the seperate step of registering the tap and the menu is no longer needed. Removed all things related to this double registering. svn path=/trunk/; revision=10180
* Add a "window_new()" routine that creates a window of a given type, setsGuy Harris2004-02-131-6/+8
| | | | | | | | | | | | the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
* Most taps that now include "tap_menu.h" no longer need to includeGuy Harris2004-02-111-2/+1
| | | | | | <stdio.h> to define FILE; get rid of the include. svn path=/trunk/; revision=10034
* Move the declaration of "register_tap_menu_item()" into a newGuy Harris2004-02-111-2/+2
| | | | | | | | | "tap_menu.h" file, and have the Ethereal taps include that rather than "menu.h", so we don't have to worry about making sure we've included <stdio.h> to define FILE, etc. just because some "menu.h" functions require it. svn path=/trunk/; revision=10031
* Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris2004-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | "simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
* implemented dlg_button_row_new to get a standard function forUlf Lamping2004-01-211-16/+7
| | | | | | | | layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
* use stock buttons whereever possible,Ulf Lamping2004-01-211-2/+2
| | | | | | added some ethereal specific stock icons svn path=/trunk/; revision=9763
* Use "retap_packets()" rather than "redissect_packets()".Guy Harris2004-01-131-2/+2
| | | | svn path=/trunk/; revision=9660
* using button compatibility macrosUlf Lamping2004-01-101-6/+2
| | | | svn path=/trunk/; revision=9636
* Make Analyze/Statistics have an accelerator of Alt+A S and moveRichard Sharpe2004-01-031-2/+2
| | | | | | Analyze/Summary to Alt+A Y. svn path=/trunk/; revision=9537
* From Lars Roland: have common code to handle display filter dialogs inGuy Harris2003-12-171-2/+2
| | | | | | taps, and use that in the H.225 taps. svn path=/trunk/; revision=9327
* Use gtk compatibility macros (from compat_macros.h) instead of some gtk+Olivier Abad2003-12-161-2/+2
| | | | | | | | v1.2 functions which are deprecated in gtk+ v2. Update OBJECT_SET_DATA macros to cast "data" to (gpointer). svn path=/trunk/; revision=9296
* Put back "menu.h" - it's needed to declare "register_tap_menu_item()".Guy Harris2003-12-131-2/+5
| | | | svn path=/trunk/; revision=9279
* removed unused #include "menu.h" from the stats.c filesUlf Lamping2003-12-131-2/+1
| | | | svn path=/trunk/; revision=9273
* Assorted GUI cleanups.Guy Harris2003-09-261-24/+66
| | | | svn path=/trunk/; revision=8544
* Pass a pointer to a "capture_file" structure toGuy Harris2003-09-241-2/+3
| | | | | | | | | | | | | | | | "set_menus_for_selected_packet()" and "set_menus_for_selected_tree_row()", and have them decide whether to enable or disable menu items based on whether that structure indicates that a packet or field is selected and, if one is, on its properties. Pass to the "selected packet enabled" routine for a menu item the "frame_data" and "edt" members of the "capture_file" structure, and pass to the "selected tree row enabled" routine the "field_info" member of that structure. Clear "cf->current_frame" if no packet is selected. svn path=/trunk/; revision=8525
* Provide a mechanism by which a tap can arrange to have its menu enabledGuy Harris2003-09-191-2/+3
| | | | | | | | | | | | or disabled based on a currently-selected packet (or lack of same) or a currently-selected protocol tree item (or lack of same). Not currently used, but necessary if we ever make the TCP graph stuff a tap. API is tentative and subject to change. Also, enable and disable taps based on whether we have any packets to process. svn path=/trunk/; revision=8498
* Have "register_tap_menu_item()" put the item under Tools, notGuy Harris2003-09-171-2/+2
| | | | | | | Tools/Statistics; change the taps to put things under Statistics themselves. That allows taps to go elsewhere if appropriate. svn path=/trunk/; revision=8488
* From Jean-Michel Fayard: BOOTP/DHCP, HTTP, and WSP statistics taps.Guy Harris2003-09-021-0/+483
svn path=/trunk/; revision=8345