changeset 7025:db041f206848

[gaim-migrate @ 7588] Recognize some more caps to make faceprint happy. Luke, I can't reproduce your thing committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 29 Sep 2003 21:20:20 +0000
parents 001d11a7e345
children 53a586c3a80e
files src/protocols/oscar/aim.h src/protocols/oscar/locate.c
diffstat 2 files changed, 53 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/aim.h	Mon Sep 29 20:31:20 2003 +0000
+++ b/src/protocols/oscar/aim.h	Mon Sep 29 21:20:20 2003 +0000
@@ -996,29 +996,33 @@
 	struct aim_userinfo_s *next;
 } aim_userinfo_t;
 
-#define AIM_CAPS_BUDDYICON	0x00000001
-#define AIM_CAPS_VOICE		0x00000002
-#define AIM_CAPS_DIRECTIM	0x00000004
-#define AIM_CAPS_CHAT		0x00000008
-#define AIM_CAPS_GETFILE	0x00000010
-#define AIM_CAPS_SENDFILE	0x00000020
-#define AIM_CAPS_GAMES		0x00000040
-#define AIM_CAPS_SAVESTOCKS	0x00000080
+#define AIM_CAPS_BUDDYICON		0x00000001
+#define AIM_CAPS_VOICE			0x00000002
+#define AIM_CAPS_DIRECTIM		0x00000004
+#define AIM_CAPS_CHAT			0x00000008
+#define AIM_CAPS_GETFILE		0x00000010
+#define AIM_CAPS_SENDFILE		0x00000020
+#define AIM_CAPS_GAMES			0x00000040
+#define AIM_CAPS_SAVESTOCKS		0x00000080
 #define AIM_CAPS_SENDBUDDYLIST	0x00000100
-#define AIM_CAPS_GAMES2		0x00000200
-#define AIM_CAPS_ICQ		0x00000400
-#define AIM_CAPS_APINFO		0x00000800
-#define AIM_CAPS_ICQRTF		0x00001000
-#define AIM_CAPS_EMPTY		0x00002000
+#define AIM_CAPS_GAMES2			0x00000200
+#define AIM_CAPS_ICQ			0x00000400
+#define AIM_CAPS_APINFO			0x00000800
+#define AIM_CAPS_ICQRTF			0x00001000
+#define AIM_CAPS_EMPTY			0x00002000
 #define AIM_CAPS_ICQSERVERRELAY	0x00004000
-#define AIM_CAPS_ICQUTF8OLD	0x00008000
+#define AIM_CAPS_ICQUTF8OLD		0x00008000
 #define AIM_CAPS_TRILLIANCRYPT	0x00010000
-#define AIM_CAPS_ICQUTF8	0x00020000
+#define AIM_CAPS_ICQUTF8		0x00020000
 #define AIM_CAPS_INTEROPERATE	0x00040000
-#define AIM_CAPS_ICHAT		0x00080000
-#define AIM_CAPS_HIPTOP		0x00100000
-#define AIM_CAPS_SECUREIM	0x00200000
-#define AIM_CAPS_LAST		0x00400000
+#define AIM_CAPS_ICHAT			0x00080000
+#define AIM_CAPS_HIPTOP			0x00100000
+#define AIM_CAPS_SECUREIM		0x00200000
+#define AIM_CAPS_SMS			0x00400000
+#define AIM_CAPS_APPLESOMETHIN1	0x00800000
+#define AIM_CAPS_APPLESOMETHIN2	0x01000000
+#define AIM_CAPS_APPLESOMETHIN3	0x02000000
+#define AIM_CAPS_LAST			0x04000000
 
 #define AIM_SENDMEMBLOCK_FLAG_ISREQUEST  0
 #define AIM_SENDMEMBLOCK_FLAG_ISHASH     1
--- a/src/protocols/oscar/locate.c	Mon Sep 29 20:31:20 2003 +0000
+++ b/src/protocols/oscar/locate.c	Mon Sep 29 21:20:20 2003 +0000
@@ -50,6 +50,27 @@
 	 {0x09, 0x46, 0x00, 0x01, 0x4c, 0x7f, 0x11, 0xd1, 
 	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
 
+	/*
+	 * Not really sure about this one.  In an email from 
+	 * 26 Sep 2003, Matthew Sachs suggested that, "this 
+	 * is probably the capability for the SMS features."
+	 */
+	{AIM_CAPS_SMS,
+	 {0x09, 0x46, 0x01, 0xff, 0x4c, 0x7f, 0x11, 0xd1, 
+	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
+
+	{AIM_CAPS_APPLESOMETHIN1,
+	 {0x09, 0x46, 0xf0, 0x03, 0x4c, 0x7f, 0x11, 0xd1, 
+	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
+
+	{AIM_CAPS_APPLESOMETHIN2,
+	 {0x09, 0x46, 0xf0, 0x04, 0x4c, 0x7f, 0x11, 0xd1, 
+	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
+
+	{AIM_CAPS_APPLESOMETHIN3,
+	 {0x09, 0x46, 0xf0, 0x05, 0x4c, 0x7f, 0x11, 0xd1, 
+	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
+
 	{AIM_CAPS_HIPTOP,
 	 {0x09, 0x46, 0x13, 0x23, 0x4c, 0x7f, 0x11, 0xd1, 
 	  0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}},
@@ -613,6 +634,15 @@
 			 *
 			 * Always four bytes, but it doesn't look like an int.
 			 */
+
+		} else if (type == 0x001f) {
+			/*
+			 * Type 31: Unknown.
+			 *
+			 * Seen on a buddy using DeadAIM.  Data was 4 bytes:
+			 * 0x00 00 00 10
+			 */
+
 		} else {
 
 			/*