changeset 2686:7b21c5446baf

[gaim-migrate @ 2699] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 07 Nov 2001 08:03:20 +0000
parents 3edac3b31edc
children 2d544f48146d
files src/protocols/yahoo/Makefile.am src/protocols/yahoo/yahoo.c
diffstat 2 files changed, 16 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/Makefile.am	Wed Nov 07 00:46:18 2001 +0000
+++ b/src/protocols/yahoo/Makefile.am	Wed Nov 07 08:03:20 2001 +0000
@@ -1,5 +1,3 @@
-EXTRA_DIST = AUTHORS
-
 pkgdir = $(libdir)/gaim
 
 CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS)
--- a/src/protocols/yahoo/yahoo.c	Wed Nov 07 00:46:18 2001 +0000
+++ b/src/protocols/yahoo/yahoo.c	Wed Nov 07 08:03:20 2001 +0000
@@ -56,29 +56,29 @@
 #define USEROPT_PAGERPORT 4
 #define YAHOO_PAGER_PORT 5050
 
-enum yahoo_service {
+enum yahoo_service { /* these are easier to see in hex */
 	YAHOO_SERVICE_LOGON = 1,
 	YAHOO_SERVICE_LOGOFF,
 	YAHOO_SERVICE_ISAWAY,
 	YAHOO_SERVICE_ISBACK,
-	YAHOO_SERVICE_IDLE,
+	YAHOO_SERVICE_IDLE, /* 5 (placemarker) */
 	YAHOO_SERVICE_MESSAGE,
 	YAHOO_SERVICE_IDACT,
 	YAHOO_SERVICE_IDDEACT,
 	YAHOO_SERVICE_MAILSTAT,
-	YAHOO_SERVICE_USERSTAT,
+	YAHOO_SERVICE_USERSTAT, /* 0xa */
 	YAHOO_SERVICE_NEWMAIL,
 	YAHOO_SERVICE_CHATINVITE,
 	YAHOO_SERVICE_CALENDAR,
 	YAHOO_SERVICE_NEWPERSONALMAIL,
 	YAHOO_SERVICE_NEWCONTACT,
-	YAHOO_SERVICE_ADDIDENT,
+	YAHOO_SERVICE_ADDIDENT, /* 0x10 */
 	YAHOO_SERVICE_ADDIGNORE,
 	YAHOO_SERVICE_PING,
 	YAHOO_SERVICE_GROUPRENAME,
-	YAHOO_SERVICE_SYSMESSAGE = 20,
-	YAHOO_SERVICE_PASSTHROUGH2 = 22,
-	YAHOO_SERVICE_CONFINVITE = 24,
+	YAHOO_SERVICE_SYSMESSAGE = 0x14,
+	YAHOO_SERVICE_PASSTHROUGH2 = 0x16,
+	YAHOO_SERVICE_CONFINVITE = 0x18,
 	YAHOO_SERVICE_CONFLOGON,
 	YAHOO_SERVICE_CONFDECLINE,
 	YAHOO_SERVICE_CONFLOGOFF,
@@ -86,17 +86,17 @@
 	YAHOO_SERVICE_CONFMSG,
 	YAHOO_SERVICE_CHATLOGON,
 	YAHOO_SERVICE_CHATLOGOFF,
-	YAHOO_SERVICE_CHATMSG = 32,
-	YAHOO_SERVICE_GAMELOGON = 40,
-	YAHOO_SERVICE_GAMELOGOFF = 41,
-	YAHOO_SERVICE_FILETRANSFER = 70,
-	YAHOO_SERVICE_LIST = 85,
-	YAHOO_SERVICE_ADDBUDDY = 131,
-	YAHOO_SERVICE_REMBUDDY = 132
+	YAHOO_SERVICE_CHATMSG = 0x20,
+	YAHOO_SERVICE_GAMELOGON = 0x28,
+	YAHOO_SERVICE_GAMELOGOFF = 0x29,
+	YAHOO_SERVICE_FILETRANSFER = 0x46,
+	YAHOO_SERVICE_LIST = 0x55,
+	YAHOO_SERVICE_ADDBUDDY = 0x83,
+	YAHOO_SERVICE_REMBUDDY = 0x84
 };
 
 enum yahoo_status {
-	YAHOO_STATUS_AVAILABLE,
+	YAHOO_STATUS_AVAILABLE = 0,
 	YAHOO_STATUS_BRB,
 	YAHOO_STATUS_BUSY,
 	YAHOO_STATUS_NOTATHOME,
@@ -109,7 +109,7 @@
 	YAHOO_STATUS_INVISIBLE = 12,
 	YAHOO_STATUS_CUSTOM = 99,
 	YAHOO_STATUS_IDLE = 999,
-	YAHOO_STATUS_OFFLINE = 0x5a55aa56
+	YAHOO_STATUS_OFFLINE = 0x5a55aa56 /* don't ask */
 };
 
 struct yahoo_data {