~jelmer/wireshark/daily-ppa

« back to all changes in this revision

Viewing changes to gtk/gui_stat_util.h

  • Committer: Bazaar Package Importer
  • Author(s): Balint Reczey
  • Date: 2010-11-20 18:41:41 UTC
  • mfrom: (1.1.28 upstream) (42.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20101120184141-19e4sxq2kfsdnc9i
Tags: 1.4.2-1
* New upstream release 1.4.2
  - release notes:
    http://www.wireshark.org/docs/relnotes/wireshark-1.4.2.html
  - security fixes
     - Nephi Johnson of BreakingPoint discovered that the LDSS dissector
       could overflow a buffer. (No assigned CVE number.)
     - The ZigBee ZCL dissector could go into an infinite loop.
       (No assigned CVE number.)
* drop 05_fix-display-filter-update-when-changing-profile.patch
  patch since it has been integrated upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * gui functions used by stats
3
3
 * Copyright 2003 Lars Roland
4
4
 *
5
 
 * $Id: gui_stat_util.h 18197 2006-05-21 05:12:17Z sahlberg $
 
5
 * $Id: gui_stat_util.h 30389 2009-10-07 10:00:26Z etxrab $
6
6
 *
7
7
 * Wireshark - Network traffic analyzer
8
8
 * By Gerald Combs <gerald@wireshark.org>
29
29
 
30
30
#include <gtk/gtk.h>
31
31
 
 
32
 
32
33
/** @file
33
34
 *  Utilities for statistics.
34
35
 */
35
36
 
 
37
#define LEFT 0
 
38
#define RIGHT 1
 
39
 
 
40
/** Columns definition
 
41
 */
 
42
typedef struct {
 
43
    GType      type;   /* column type */
 
44
    gint       align;  /* alignement  */
 
45
    const char *title; /* column title */
 
46
} stat_column;
36
47
 
37
48
/** Init a window for stats, set title and display used filter in window.
38
49
 *
48
59
 * @param scrolled_window the scrolled window
49
60
 * @param vbox the vbox for the window
50
61
 * @param columns number of columns
51
 
 * @param titles 
 
62
 * @param headers columns title and type, G_TYPE_POINTER is illegal, there's no default cell renderer for it
52
63
 */
53
 
extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[]);
 
64
extern GtkTreeView *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const stat_column *headers);
54
65
 
55
66
#endif