diff libpurple/protocols/yahoo/yahoo.h @ 25071:38d188685f2f

changed gboolean connection_type to enum yahoo_p2p_connection_type
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sat, 12 Jul 2008 19:24:34 +0000
parents c3c5e79b4ecc
children 63033139c590
line wrap: on
line diff
--- 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;