Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gnet_stats.c File Reference

#include "gtk/gui.h"
#include "gtk/gnet_stats.h"
#include "gtk/notebooks.h"
#include "gtk/gtk-missing.h"
#include "gtk/misc.h"
#include "if/gui_property.h"
#include "if/gui_property_priv.h"
#include "if/core/gnutella.h"
#include "if/bridge/ui2c.h"
#include "lib/tm.h"
#include "lib/glib-missing.h"
#include "lib/override.h"

Typedefs

typedef guint64 stat_counters_t [MSG_TYPE_COUNT]

Enumerations

enum  gnet_stats_nb_page {
  GNET_STATS_NB_PAGE_STATS, GNET_STATS_NB_PAGE_MESSAGES, GNET_STATS_NB_PAGE_FLOWC, GNET_STATS_NB_PAGE_RECV,
  GNET_STATS_NB_PAGE_HORIZON, NUM_GNET_STATS_NB_PAGES
}

Functions

 RCSID ("$Id:gnet_stats.c, v 1.21 2005/12/19 07:12:17 cbiere Exp $")
void hide_column_by_title (GtkTreeView *, const gchar *, gboolean)
void gnet_stats_update_drop_reasons (const gnet_stats_t *)
gchar * pkt_stat_str (gchar *dst, size_t size, const guint64 *val_tbl, gint type, gboolean perc)
const gchar * byte_stat_str (gchar *dst, gulong n, const guint64 *val_tbl, gint type, gboolean perc)
const gchar * drop_stat_str (gchar *dst, size_t size, const gnet_stats_t *stats, gint reason, gint selected_type, gboolean percent)
const gchar * general_stat_str (gchar *dst, size_t size, const gnet_stats_t *stats, gint type)
const gchar * type_stat_str (gchar *dst, size_t size, gulong value, gulong total, gboolean perc, gboolean bytes)
void add_column (GtkTreeView *treeview, gint column_id, gint width, gfloat xalign, const gchar *label)
void gnet_stats_update_general (const gnet_stats_t *stats)
void gnet_stats_update_messages (const gnet_stats_t *stats)
void gnet_stats_update_types (const gnet_stats_t *unused_stats, GtkTreeView *treeview, gint columns, const stat_counters_t *byte_counters, const stat_counters_t *pkg_counters)
void gnet_stats_update_flowc (const gnet_stats_t *stats)
void gnet_stats_update_recv (const gnet_stats_t *stats)
void gnet_stats_update_horizon (void)
void gnet_stats_gui_horizon_init (void)
void gnet_stats_gui_flowc_init (void)
void gnet_stats_gui_drop_reasons_init (void)
void gnet_stats_gui_general_init (void)
void gnet_stats_gui_messages_init (void)
void gnet_stats_gui_recv_init (void)
void gnet_stats_gui_init (void)
void gnet_stats_gui_shutdown (void)
void gnet_stats_gui_update (time_t now)

Variables

GtkTreeView * treeview_gnet_stats_messages = NULL
GtkTreeView * treeview_gnet_stats_drop_reasons = NULL
GtkTreeView * treeview_gnet_stats_flowc = NULL
GtkTreeView * treeview_gnet_stats_recv = NULL
GtkTreeView * treeview_gnet_stats_general = NULL
GtkTreeView * treeview_gnet_stats_horizon = NULL
GtkNotebook * notebook_main = NULL
GtkNotebook * notebook_gnet_stats = NULL
const gchar *const  msg_stats_label []


Typedef Documentation

typedef guint64 stat_counters_t[MSG_TYPE_COUNT]
 


Enumeration Type Documentation

enum gnet_stats_nb_page
 

Enumeration values:
GNET_STATS_NB_PAGE_STATS 
GNET_STATS_NB_PAGE_MESSAGES 
GNET_STATS_NB_PAGE_FLOWC 
GNET_STATS_NB_PAGE_RECV 
GNET_STATS_NB_PAGE_HORIZON 
NUM_GNET_STATS_NB_PAGES 


Function Documentation

void add_column GtkTreeView *  treeview,
gint  column_id,
gint  width,
gfloat  xalign,
const gchar *  label
[static]
 

const gchar* byte_stat_str gchar *  dst,
gulong  n,
const guint64 *  val_tbl,
gint  type,
gboolean  perc
[static]
 

const gchar* drop_stat_str gchar *  dst,
size_t  size,
const gnet_stats_t stats,
gint  reason,
gint  selected_type,
gboolean  percent
[static]
 

const gchar* general_stat_str gchar *  dst,
size_t  size,
const gnet_stats_t stats,
gint  type
[static]
 

void gnet_stats_gui_drop_reasons_init void   )  [static]
 

void gnet_stats_gui_flowc_init void   )  [static]
 

void gnet_stats_gui_general_init void   )  [static]
 

void gnet_stats_gui_horizon_init void   )  [static]
 

void gnet_stats_gui_init void   ) 
 

void gnet_stats_gui_messages_init void   )  [static]
 

void gnet_stats_gui_recv_init void   )  [static]
 

void gnet_stats_gui_shutdown void   ) 
 

void gnet_stats_gui_update time_t  now  ) 
 

void gnet_stats_update_drop_reasons const gnet_stats_t  )  [static]
 

void gnet_stats_update_flowc const gnet_stats_t stats  )  [static]
 

void gnet_stats_update_general const gnet_stats_t stats  )  [static]
 

void gnet_stats_update_horizon void   )  [static]
 

void gnet_stats_update_messages const gnet_stats_t stats  )  [static]
 

void gnet_stats_update_recv const gnet_stats_t stats  )  [static]
 

void gnet_stats_update_types const gnet_stats_t unused_stats,
GtkTreeView *  treeview,
gint  columns,
const stat_counters_t byte_counters,
const stat_counters_t pkg_counters
[static]
 

void hide_column_by_title GtkTreeView *  ,
const gchar *  ,
gboolean 
[static]
 

gchar* pkt_stat_str gchar *  dst,
size_t  size,
const guint64 *  val_tbl,
gint  type,
gboolean  perc
[static]
 

RCSID "$Id:gnet_stats.  c,
v 1.21 2005/12/19 07:12:17 cbiere Exp $" 
 

const gchar* type_stat_str gchar *  dst,
size_t  size,
gulong  value,
gulong  total,
gboolean  perc,
gboolean  bytes
[static]
 


Variable Documentation

const gchar* const msg_stats_label[] [static]
 

Initial value:

 {
    N_("Type"),
    N_("Received"),
    N_("Expired"),
    N_("Dropped"),
    N_("Queued"),
    N_("Relayed"),
    N_("Gen. queued"),

}

GtkNotebook* notebook_gnet_stats = NULL [static]
 

GtkNotebook* notebook_main = NULL [static]
 

GtkTreeView* treeview_gnet_stats_drop_reasons = NULL [static]
 

GtkTreeView* treeview_gnet_stats_flowc = NULL [static]
 

GtkTreeView* treeview_gnet_stats_general = NULL [static]
 

GtkTreeView* treeview_gnet_stats_horizon = NULL [static]
 

GtkTreeView* treeview_gnet_stats_messages = NULL [static]
 

GtkTreeView* treeview_gnet_stats_recv = NULL [static]
 


Generated on Sun Feb 12 10:50:02 2006 for Gtk-Gnutella by doxygen 1.3.6