diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 14:35:24 +0100 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 14:35:24 +0100 | 
| commit | f56c4917aa26670c03ef9cf4ecdfe2f7fad92aed (patch) | |
| tree | a2fc70cee9c464823577e425fa6cdbc2d836a766 /protocols/proxy.c | |
| parent | abe53d3c48a6552e136ddc8bc554764daf255a05 (diff) | |
| parent | b135438c4c6aeb5a7cd3403f0cf37e741d589cd3 (diff) | |
Merge new changes from pluginable and Wilmer
Diffstat (limited to 'protocols/proxy.c')
| -rw-r--r-- | protocols/proxy.c | 54 | 
1 files changed, 0 insertions, 54 deletions
| diff --git a/protocols/proxy.c b/protocols/proxy.c index b5f86e89..6d450c92 100644 --- a/protocols/proxy.c +++ b/protocols/proxy.c @@ -96,65 +96,11 @@ static void gaim_io_destroy(gpointer data)  	g_free(data);  } -#ifdef PROXYPROFILER -struct proxyprofiler -{ -	GaimInputFunction function; -	gpointer data; -	 -	int count; -	 -	struct proxyprofiler *next; -} *pp = NULL; - -void proxyprofiler_dump() -{ -	struct proxyprofiler *l; -	char s[128]; -	FILE *fp; -	 -	sprintf( s, "proxyprofiler.%d", (int) getpid() ); -	fp = fopen( s, "w" ); -	 -	fprintf( fp, "%-18s  %-18s  %10s\n", "Function", "Data", "Count" ); -	for( l = pp; l; l = l->next ) -		fprintf( fp, "0x%-16x  0x%-16x  %10d\n", (int) l->function, (int) l->data, l->count ); -	 -	fclose( fp ); -} -#endif -  static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data)  {  	GaimIOClosure *closure = data;  	GaimInputCondition gaim_cond = 0; -#ifdef PROXYPROFILER -	struct proxyprofiler *l; -	 -	for( l = pp; l; l = l->next ) -	{ -		if( closure->function == l->function && closure->data == l->data ) -			break; -	} -	if( l ) -	{ -		l->count ++; -	} -	else -	{ -		l = g_new0( struct proxyprofiler, 1 ); -		l->function = closure->function; -		l->data = closure->data; -		l->count = 1; -		 -		l->next = pp; -		pp = l; -	} -#endif -	 -	count_io_event(source, "proxy"); -	  	if (condition & GAIM_READ_COND)  		gaim_cond |= GAIM_INPUT_READ;  	if (condition & GAIM_WRITE_COND) | 
