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

gnet_stats_common.c File Reference

#include "gui.h"
#include "gnet_stats_common.h"
#include "gtk-missing.h"
#include "if/core/net_stats.h"
#include "if/bridge/ui2c.h"
#include "lib/glib-missing.h"
#include "lib/override.h"

Functions

 RCSID ("$Id:gnet_stats_common.c, v 1.21 2005/08/11 06:32:14 cbiere Exp $")
const gchar * msg_type_str (gint value)
 Gets the string associated with the message type.

gint msg_type_str_size (void)
const gchar * msg_drop_str (gint value)
 Gets the string associated with the drop reason.

const gchar * general_type_str (gint value)
 Gets the string associated with the general message.

const gchar * horizon_stat_str (gint row, c_horizon_t column)
void gnet_stats_gui_horizon_update (hsep_triple *table, guint32 triples)
 Updates the horizon statistics in the statusbar.


Function Documentation

const gchar* general_type_str gint  value  ) 
 

Gets the string associated with the general message.

void gnet_stats_gui_horizon_update hsep_triple table,
guint32  triples
 

Updates the horizon statistics in the statusbar.

This is an event-driven callback called from the HSEP code using the event listener framework. In addition to taking into account the HSEP information, the number of established non-HSEP nodes and their library size (if provided) are added to the values displayed.

const gchar* horizon_stat_str gint  row,
c_horizon_t  column
 

Returns:
the cell contents for the horizon stats table.
Warning:
NB: The static buffers for each column are disjunct.

const gchar* msg_drop_str gint  value  ) 
 

Gets the string associated with the drop reason.

const gchar* msg_type_str gint  value  ) 
 

Gets the string associated with the message type.

gint msg_type_str_size void   ) 
 

RCSID "$Id:gnet_stats_common.  c,
v 1.21 2005/08/11 06:32:14 cbiere Exp $" 
 


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