aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gsm_map_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-30Remove some unnecessary includes: a lot of things don't need globals.h and ↵morriss1-28/+26
register.h git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34017 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-23(Minor) Cleanup signal callbak signatures and related:wmeier1-1/+1
- Don't mark callback arg as _U_ if actually used (and vice-versa); - Use Null as user_data in g_signal_callback if unused in callback; - Use correct signature for certain event callbacks. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33895 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-26(Trivial) Use gboolean instead of int in a few places; Whitespace cleanup.wmeier1-181/+181
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33634 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-10Removed some unused variables and unused assignments.stig1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30918 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-08From Kovarththanan Rajaratnam:etxrab1-1/+1
No letter-shortcuts in Telephony menu. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3678 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29028 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-21Change window_new() to dlg_window_new() and destroy the window with the top ↵etxrab1-1/+2
level window. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28796 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-05Have tap listeners specify whether the "packet" routine requiresguy1-1/+1
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28645 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-08Warningfix:jmayer1-1/+1
function() -> function(void) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28302 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-16Get rid of Clists, move a comment, move display as hex to gui_utils.etxrab1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27741 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-06Get rid of a Clist and move the functon to display floats with two decimals ↵etxrab1-254/+261
to gui_utils. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27621 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix some "format not a string literal and no format arguments" warnings.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26641 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13sort #includes by directoriesulfl1-15/+19
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24968 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12where it's not necessary, remove #include "compat_macros.h"ulfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24922 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectulfl1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24918 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11third round to replace SIGNAL_CONNECT with g_signal_connectulfl1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24914 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11OBJECT_..._DATA --> g_object_..._datawmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24898 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-29From David Howells :standel1-2/+2
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat 4.1.2-8). The failures fall into two categories: (1) Casts between pointers and 32-bit integers without an intermediary cast via 'long' or 'unsigned long'. This results in a compiler warning complaining about casts between a pointer and an integer of a different size. (2) Passing values to "%lld" or similar printf-style format options that the compiler thinks are a different size. Such values need to be cast to 'long long' or 'unsigned long long'. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21975 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-13Second step in introducing asn context to BER dissectors just like in PER.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21753 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-04From Florent Drouin:etxrab1-1/+1
Just a little correction. In the last patch for gtk/gsm_map_stat.c applied, the variable "j" was changed to "i" . git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17459 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-27From: Florent Drouin:etxrab1-7/+13
Add a test to avoid divide by zero during stat. display. Use new variable j, instead of i, already used in the loop. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17416 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-11 add an userdata argument to register_stat_cmd_arg() and its callback to use ↵lego1-3/+3
the callback for multiple registrations. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17252 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-21As per a suggestion by Ulf Lamping, rename gtk_*.[ch] to gui_*.[ch], soguy1-1/+1
that it doesn't appear to be part of GTK+. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15501 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-21Add a "register_dfilter_stat()", to register stats that take a displayguy1-1/+2
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15493 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20The routines registered with "register_stat_cmd_arg()" *are* called ifguy1-16/+11
you use the "-z" command-line options for them; make them pop up the appropriate windows. Move the calls to "register_stat_cmd_arg()" after the code to register the tap, just as the calls to "register_stat_menu_item()" are done after registering the tap. Use "g_strdup_printf()" rather than formatting into a fixed-length buffer and "g_strdup()"ing that buffer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15489 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withguy1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15483 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵ulfl1-1/+1
named ui_util.h in / dir git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15465 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15429 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsguy1-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>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15427 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19From Michael Lum:sahlberg1-10/+8
Statistics data structure was not being passed to the draw routine. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15425 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-06Squelch more const warnings (and fix some memory leaks that found).guy1-3/+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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15236 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-05More char -> const char warning fixes.jmayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15227 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-16add 12 new toolbar/menu iconsulfl1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14098 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-14From Laurent Rabret: handle the cases where there's no capture file, orguy1-1/+1
there is but it has no packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13041 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-01As we've made the tap_specific_data field of a tap_packet_t structure aguy1-26/+21
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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12910 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-29Move the tap infrastructure to the epan directory.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12128 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-19renamed filter_prefs to filter_dlg, as the filter settings are (well, for a ↵ulfl1-1/+1
long time) no longer part of the preferences dialog. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11436 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-23use new functions in window API (ui_util.h),ulfl1-46/+8
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10979 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-21From Michael Lum:guy1-36/+102
ANSI and GSM MAP stats enhancements and cleanups; enhanced parameter dissection related to SS for GSM A-interface and MAP; minor GSM SMS fix; GSM SS enhancements for parameter dissection; MTP3 statistics tap. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10655 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-12added missing #include from my latest checkinulfl1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10585 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-12added a close button to the dialogs,ulfl1-50/+24
use the dlg_window_new function for all dialogs git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10584 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-13replaced sprintf / snprintf by g_snprintf,ulfl1-5/+4
various other string related changes git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10373 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-23statistics menu redesigned, now looking more like the former menu,ulfl1-2/+2
items now again grouped by function, not by ISO layer git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10202 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-22Redesigned the menu structure of the former statistics stuff,ulfl1-7/+3
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10180 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-18Warning fixes:jmayer1-3/+5
gsm_map_stat.c: comparison is always false due to limited range of data type both: get rid of a "discards qualifier" warning git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10081 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-11From Michael Lum: add tap for GSM MAP message statistics.guy1-0/+486
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10032 f5534014-38df-0310-8fa8-9805f1628bb7