--- a/libpurple/protocols/yahoo/yahoo.h Sat Jul 12 19:13:31 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo.h Sat Jul 12 19:24:34 2008 +0000 @@ -89,6 +89,11 @@ YAHOO_PKT_TYPE_P2P } yahoo_pkt_type; +typedef enum { + YAHOO_P2P_WE_ARE_CLIENT =0, + YAHOO_P2P_WE_ARE_SERVER +} yahoo_p2p_connection_type; + enum yahoo_status { YAHOO_STATUS_AVAILABLE = 0, YAHOO_STATUS_BRB, @@ -126,7 +131,7 @@ guint input_event; gint source; int session_id; - gboolean connection_type; /* 0: peer is server, 1: we are server*/ + yahoo_p2p_connection_type connection_type; }; struct _YchtConn;